changeset 37485:896f9fead17e legacy-trunk v2.5a1

we need os.path too for the normal run on windows
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 04 Apr 2006 19:29:29 +0000
parents 105a8dd01851
children a0f2c38d85f4
files Lib/test/test_startfile.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_startfile.py	Tue Apr 04 19:17:34 2006 +0000
+++ b/Lib/test/test_startfile.py	Tue Apr 04 19:29:29 2006 +0000
@@ -11,7 +11,7 @@
 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):
@@ -21,12 +21,12 @@
         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")