test_execvpe_with_bad_arglist shouldn't be in URandomTests

This commit is contained in:
Antoine Pitrou
2013-08-16 20:56:12 +02:00
parent f48a67b317
commit 326ec048bf

View File

@@ -581,9 +581,13 @@ class URandomTests (unittest.TestCase):
# creating any file descriptor.
resource.setrlimit(resource.RLIMIT_NOFILE, (soft_limit, hard_limit))
class ExecvpeTests(unittest.TestCase):
def test_execvpe_with_bad_arglist(self):
self.assertRaises(ValueError, os.execvpe, 'notepad', [], None)
class Win32ErrorTests(unittest.TestCase):
def test_rename(self):
self.assertRaises(WindowsError, os.rename, test_support.TESTFN, test_support.TESTFN+".bak")
@@ -870,6 +874,7 @@ def test_main():
MakedirTests,
DevNullTests,
URandomTests,
ExecvpeTests,
Win32ErrorTests,
TestInvalidFD,
PosixUidGidTests,