diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index eae01f9c9e05e9..5a4fd36bba4e5c 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -3043,7 +3043,7 @@ def check_context(self, tar, filter): self.raised_exception = None try: self.expected_paths = set(self.outerdir.glob('**/*')) - except OSError as err + except OSError as err: if getattr(err, 'winerror', None) == 123: # 123 is Windows error ERROR_INVALID_NAME # glob() fails this way when symlink targets are too long