diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-01 18:43:26 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-08-01 18:43:26 (GMT) |
commit | 7a2572cb4987c5dad3e478e40086e038b701a163 (patch) | |
tree | 29aa6443fa354a0ee8d6f145ad3e361828ca5578 /Lib | |
parent | f93c7b80613114dc51b0badc3909d92240574ce2 (diff) | |
download | cpython-7a2572cb4987c5dad3e478e40086e038b701a163.zip cpython-7a2572cb4987c5dad3e478e40086e038b701a163.tar.gz cpython-7a2572cb4987c5dad3e478e40086e038b701a163.tar.bz2 |
test_capi: make a specific test case for the subinterpreter test
(it was wrongly classified in the pending calls test case)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_capi.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index f1ea5a9..62827e5 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -193,6 +193,9 @@ class TestPendingCalls(unittest.TestCase): self.pendingcalls_submit(l, n) self.pendingcalls_wait(l, n) + +class SubinterpreterTest(unittest.TestCase): + def test_subinterps(self): import builtins r, w = os.pipe() @@ -208,6 +211,7 @@ class TestPendingCalls(unittest.TestCase): self.assertNotEqual(pickle.load(f), id(sys.modules)) self.assertNotEqual(pickle.load(f), id(builtins)) + # Bug #6012 class Test6012(unittest.TestCase): def test(self): @@ -354,7 +358,8 @@ class TestThreadState(unittest.TestCase): def test_main(): support.run_unittest(CAPITest, TestPendingCalls, Test6012, - EmbeddingTest, SkipitemTest, TestThreadState) + EmbeddingTest, SkipitemTest, TestThreadState, + SubinterpreterTest) for name in dir(_testcapi): if name.startswith('test_'): |