Commit 85266e0a authored by Antoine Pitrou's avatar Antoine Pitrou

test_execvpe_with_bad_arglist shouldn't be in URandomTests

parent 9e801ba3
...@@ -581,9 +581,13 @@ class URandomTests (unittest.TestCase): ...@@ -581,9 +581,13 @@ class URandomTests (unittest.TestCase):
# creating any file descriptor. # creating any file descriptor.
resource.setrlimit(resource.RLIMIT_NOFILE, (soft_limit, hard_limit)) resource.setrlimit(resource.RLIMIT_NOFILE, (soft_limit, hard_limit))
class ExecvpeTests(unittest.TestCase):
def test_execvpe_with_bad_arglist(self): def test_execvpe_with_bad_arglist(self):
self.assertRaises(ValueError, os.execvpe, 'notepad', [], None) self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)
class Win32ErrorTests(unittest.TestCase): class Win32ErrorTests(unittest.TestCase):
def test_rename(self): def test_rename(self):
self.assertRaises(WindowsError, os.rename, test_support.TESTFN, test_support.TESTFN+".bak") self.assertRaises(WindowsError, os.rename, test_support.TESTFN, test_support.TESTFN+".bak")
...@@ -870,6 +874,7 @@ def test_main(): ...@@ -870,6 +874,7 @@ def test_main():
MakedirTests, MakedirTests,
DevNullTests, DevNullTests,
URandomTests, URandomTests,
ExecvpeTests,
Win32ErrorTests, Win32ErrorTests,
TestInvalidFD, TestInvalidFD,
PosixUidGidTests, PosixUidGidTests,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment