[Python-checkins] cpython (2.7): Import shutil for restore_test_support_TESTFN().

serhiy.storchaka python-checkins at python.org
Sun Feb 10 11:02:17 CET 2013


http://hg.python.org/cpython/rev/3379d9efda6b
changeset:   82117:3379d9efda6b
branch:      2.7
parent:      82114:3afa4c8eee1e
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Feb 10 12:01:31 2013 +0200
summary:
  Import shutil for restore_test_support_TESTFN().

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


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -158,6 +158,7 @@
 import os
 import random
 import re
+import shutil
 import sys
 import time
 import traceback
@@ -943,7 +944,6 @@
         return FAILED, test_time
 
 def cleanup_test_droppings(testname, verbose):
-    import shutil
     import stat
     import gc
 

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


More information about the Python-checkins mailing list