mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
Fix test_startfile and remove duplicated test.
This commit is contained in:
parent
8b7a95750a
commit
4afcfb4f00
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user