[Python-checkins] r84975 - python/branches/release27-maint/Lib/test/test_file2k.py

hirokazu.yamamoto python-checkins at python.org
Thu Sep 23 17:59:21 CEST 2010


Author: hirokazu.yamamoto
Date: Thu Sep 23 17:59:21 2010
New Revision: 84975

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


Modified:
   python/branches/release27-maint/Lib/test/test_file2k.py

Modified: python/branches/release27-maint/Lib/test/test_file2k.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_file2k.py	(original)
+++ python/branches/release27-maint/Lib/test/test_file2k.py	Thu Sep 23 17:59:21 2010
@@ -172,7 +172,7 @@
 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:


More information about the Python-checkins mailing list