Issue #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir

This commit is contained in:
Hirokazu Yamamoto 2010-09-23 15:59:21 +00:00
parent e49aefcc51
commit fa647ec409
1 changed files with 1 additions and 1 deletions

View 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: