Fix test_startfile and remove duplicated test.

This commit is contained in:
Thomas Heller 2007-08-31 06:45:04 +00:00
parent 8b7a95750a
commit 4afcfb4f00

View File

@ -17,19 +17,11 @@ class TestCase(unittest.TestCase):
def test_nonexisting(self):
self.assertRaises(OSError, startfile, "nonexisting.vbs")
def test_nonexisting_u(self):
self.assertRaises(OSError, startfile, "nonexisting.vbs")
def test_empty(self):
empty = path.join(path.dirname(__file__), "empty.vbs")
startfile(empty)
startfile(empty, "open")
def test_empty_u(self):
empty = path.join(path.dirname(__file__), "empty.vbs")
startfile(str(empty, "mbcs"))
startfile(str(empty, "mbcs"), "open")
def test_main():
test_support.run_unittest(TestCase)