]> granicus.if.org Git - python/commitdiff
test_capi: make a specific test case for the subinterpreter test
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 1 Aug 2013 18:43:26 +0000 (20:43 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 1 Aug 2013 18:43:26 +0000 (20:43 +0200)
(it was wrongly classified in the pending calls test case)

Lib/test/test_capi.py

index f1ea5a9fdeb7afbd1ad5d8db31c4c18f158631bc..62827e598635d4e2cb98f391ceb26d26d8c3e7f9 100644 (file)
@@ -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_'):