Skip to content

Commit 5af66c6

Browse files
committed
Add ERROR_ACCESS_DENIED
1 parent 3c5ed15 commit 5af66c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_tarfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3847,8 +3847,9 @@ def test_realpath_limit_attack(self):
38473847
exc = self.expect_exception(OSError)
38483848
if sys.platform == 'win32':
38493849
# 3: ERROR_PATH_NOT_FOUND
3850+
# 5: ERROR_ACCESS_DENIED
38503851
# 206: ERROR_FILENAME_EXCED_RANGE
3851-
self.assertIn(exc.winerror, (3, 206))
3852+
self.assertIn(exc.winerror, (3, 5, 206))
38523853
else:
38533854
self.assertEqual(exc.errno, errno.ENAMETOOLONG)
38543855
else:

0 commit comments

Comments
 (0)