Issue #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir
This commit is contained in:
parent
e49aefcc51
commit
fa647ec409
|
@ -172,7 +172,7 @@ class AutoFileTests(unittest.TestCase):
|
||||||
class OtherFileTests(unittest.TestCase):
|
class OtherFileTests(unittest.TestCase):
|
||||||
|
|
||||||
def testOpenDir(self):
|
def testOpenDir(self):
|
||||||
this_dir = os.path.dirname(__file__)
|
this_dir = os.path.dirname(__file__) or os.curdir
|
||||||
for mode in (None, "w"):
|
for mode in (None, "w"):
|
||||||
try:
|
try:
|
||||||
if mode:
|
if mode:
|
||||||
|
|
Loading…
Reference in New Issue