summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-11 23:27:08 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-11 23:27:08 (GMT)
commit2582762b1b76a9bbe11f8ba5fc2a350157526050 (patch)
tree2842450f57aa729c32fdba59c98558f0ad324650 /Lib/test/test_site.py
parent1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812 (diff)
downloadcpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.zip
cpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.tar.gz
cpython-2582762b1b76a9bbe11f8ba5fc2a350157526050.tar.bz2
Issue #19209: Remove import of copyreg from the os module to speed up
interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index d260603..5147edc 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -431,10 +431,13 @@ class StartupImportTests(unittest.TestCase):
modules = eval(stdout.decode('utf-8'))
self.assertIn('site', modules)
+ # http://bugs.python.org/issue19205
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
self.assertFalse(modules.intersection(re_mods))
-
+ # http://bugs.python.org/issue9548
self.assertNotIn('locale', modules)
+ # http://bugs.python.org/issue19209
+ self.assertNotIn('copyreg', modules)
if __name__ == "__main__":