mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Issue #7092: Remove py3k warning when importing cPickle. 2to3 handles
renaming of `cPickle` to `pickle`. The warning was annoying since there's no alternative to cPickle if you care about performance. Patch by Florent Xicluna.
This commit is contained in:
parent
ce8e33a095
commit
8015725d4f
3 changed files with 6 additions and 7 deletions
|
@ -336,7 +336,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
'sunos5' : ('sunaudiodev', 'SUNAUDIODEV'),
|
||||
}
|
||||
optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop',
|
||||
'sv', 'cPickle', 'bsddb', 'dbhash')
|
||||
'sv', 'bsddb', 'dbhash')
|
||||
|
||||
def check_removal(self, module_name, optional=False):
|
||||
"""Make sure the specified module, when imported, raises a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue