mirror of
https://github.com/python/cpython.git
synced 2026-01-03 05:54:03 +00:00
Fix test_startfile and remove duplicated test.
This commit is contained in:
parent
8b7a95750a
commit
4afcfb4f00
1 changed files with 0 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue