summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-11 23:00:51 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-11 23:00:51 (GMT)
commit1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812 (patch)
treea75be263b5887f82db5ccbfcdc4a0112a4f9aed2 /Lib
parentbfc3a9a5c31d20cc14347d3fa12c8f46b8188b90 (diff)
downloadcpython-1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812.zip
cpython-1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812.tar.gz
cpython-1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812.tar.bz2
Also test that the locale module isn't loaded during normal startup
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_site.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 41fa7b1..d260603 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -434,6 +434,8 @@ class StartupImportTests(unittest.TestCase):
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
self.assertFalse(modules.intersection(re_mods))
+ self.assertNotIn('locale', modules)
+
if __name__ == "__main__":
unittest.main()