From 1a5fb4e3c1d99a0abbb9f1e9dd6f9322102ee812 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 12 Oct 2013 01:00:51 +0200 Subject: Also test that the locale module isn't loaded during normal startup --- Lib/test/test_site.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v0.12