diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 2bd2a5e23e2b..ddf38ad797db 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -192,7 +192,6 @@ def check_rename(self, module_name, new_module_name): - The module can be imported using the new 3.x name. - The warning message specify both names. """ - ModuleType = type(sys) # get the module type object with CleanImport(module_name): with catch_warning(record=False) as w: warnings.filterwarnings("error", ".+ renamed to",