summaryrefslogtreecommitdiff
path: root/Lib/test/test_file2k.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_file2k.py')
-rw-r--r--Lib/test/test_file2k.py2
1 files changed, 1 insertions, 1 deletions
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: