From: Hirokazu Yamamoto Date: Thu, 23 Sep 2010 15:59:21 +0000 (+0000) Subject: Issue #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir X-Git-Tag: v2.7.1rc1~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa647ec409f586cbc313e9489e9c3c48e31c7f7d;p=python Issue #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir --- diff --git a/Lib/test/test_file2k.py b/Lib/test/test_file2k.py index ebfd9e77a3..fc8bfe9c5d 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: