Commits

Anonymous committed 896f9fe

we need os.path too for the normal run on windows

  • Participants
  • Parent commits 105a8dd
  • Branches legacy-trunk
  • Tags v2.5a1

Comments (0)

Files changed (1)

Lib/test/test_startfile.py

 from test import test_support
 
 # use this form so that the test is skipped when startfile is not available:
-from os import startfile
+from os import startfile, path
 
 class TestCase(unittest.TestCase):
     def test_nonexisting(self):
         self.assertRaises(OSError, startfile, u"nonexisting.vbs")
 
     def test_empty(self):
-        empty = os.path.join(os.path.dirname(__file__), "empty.vbs")
+        empty = path.join(path.dirname(__file__), "empty.vbs")
         startfile(empty)
         startfile(empty, "open")
 
     def test_empty_u(self):
-        empty = os.path.join(os.path.dirname(__file__), "empty.vbs")
+        empty = path.join(path.dirname(__file__), "empty.vbs")
         startfile(unicode(empty, "mbcs"))
         startfile(unicode(empty, "mbcs"), "open")