diff --git a/Lib/test/test_file2k.py b/Lib/test/test_file2k.py index ebfd9e77a3a..fc8bfe9c5d7 100644 --- a/Lib/test/test_file2k.py +++ b/Lib/test/test_file2k.py @@ -172,7 +172,7 @@ class AutoFileTests(unittest.TestCase): class OtherFileTests(unittest.TestCase): def testOpenDir(self): - this_dir = os.path.dirname(__file__) + this_dir = os.path.dirname(__file__) or os.curdir for mode in (None, "w"): try: if mode: