[Python-checkins] cpython: test_gc: remove unused imports

victor.stinner python-checkins at python.org
Sat Jan 23 07:30:30 EST 2016


https://hg.python.org/cpython/rev/6ef5cb869340
changeset:   100056:6ef5cb869340
parent:      100054:c4e4886c6052
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jan 23 13:29:02 2016 +0100
summary:
  test_gc: remove unused imports

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


diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -682,7 +682,6 @@
         # Create a reference cycle through the __main__ module and check
         # it gets collected at interpreter shutdown.
         code = """if 1:
-            import weakref
             class C:
                 def __del__(self):
                     print('__del__ called')
@@ -696,7 +695,6 @@
         # Same as above, but with a non-__main__ module.
         with temp_dir() as script_dir:
             module = """if 1:
-                import weakref
                 class C:
                     def __del__(self):
                         print('__del__ called')

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


More information about the Python-checkins mailing list