]> granicus.if.org Git - python/commit
Issue2564: Prevent a hang in "import test.autotest", which runs the entire test
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 8 Apr 2008 21:27:42 +0000 (21:27 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 8 Apr 2008 21:27:42 +0000 (21:27 +0000)
commit4b798bdf8ab3a4a4b3b11ea60a8f0b1c54e43224
tree2f6d90495b0810238db4e2093acc1536c7b270c7
parentabf8e015c2cd0af1c463eccf371bba003ae538dd
Issue2564: Prevent a hang in "import test.autotest", which runs the entire test
suite as a side-effect of importing the module.

- in test_capi, a thread tried to import other modules
- re.compile() imported sre_parse again on every call.
Lib/sre_compile.py
Lib/test/test_capi.py