[Python-checkins] cpython: Also test that the locale module isn't loaded during normal startup

christian.heimes python-checkins at python.org
Sat Oct 12 01:01:04 CEST 2013


http://hg.python.org/cpython/rev/e8ddf7c0c3f2
changeset:   86215:e8ddf7c0c3f2
user:        Christian Heimes <christian at cheimes.de>
date:        Sat Oct 12 01:00:51 2013 +0200
summary:
  Also test that the locale module isn't loaded during normal startup

files:
  Lib/test/test_site.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -434,6 +434,8 @@
         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()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list