]> granicus.if.org Git - python/commitdiff
Issue #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 23 Sep 2010 15:59:21 +0000 (15:59 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Thu, 23 Sep 2010 15:59:21 +0000 (15:59 +0000)
Lib/test/test_file2k.py

index ebfd9e77a3aa299a5dddac2c10294aa13392413d..fc8bfe9c5d7f5564a74250227ff1e93e99c419d6 100644 (file)
@@ -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: