[Python-Dev] cpython: Issue #19209: Remove import of copyreg from the os module to speed up

Christian Heimes christian at python.org
Sat Oct 12 13:55:27 CEST 2013


Am 12.10.2013 01:32, schrieb Nick Coghlan:
>> 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
>> @@ -431,10 +431,13 @@
>>          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)
> 
> This looks like it snuck in from a separate patch.

No harm done. It seems like a good idea to document the reason for the
test cases so I added links the links at the same time.



More information about the Python-Dev mailing list