[Zope3-checkins] CVS: Zope3/src/zope/proxy/tests - test_proxy.py:1.16

Jeremy Hylton cvs-admin at zope.org
Mon Nov 3 23:04:53 EST 2003


Update of /cvs-repository/Zope3/src/zope/proxy/tests
In directory cvs.zope.org:/tmp/cvs-serv28992/src/zope/proxy/tests

Modified Files:
	test_proxy.py 
Log Message:
Fix various import issues.

Some names where from imported twice.
Other imports were unused.
Often imports were in partly random order, making them harder to read.


=== Zope3/src/zope/proxy/tests/test_proxy.py 1.15 => 1.16 ===
--- Zope3/src/zope/proxy/tests/test_proxy.py:1.15	Sun Sep 21 13:34:26 2003
+++ Zope3/src/zope/proxy/tests/test_proxy.py	Mon Nov  3 23:04:23 2003
@@ -16,7 +16,9 @@
 $Id$
 """
 import pickle
+import sys
 import unittest
+
 from zope.testing.doctestunit import DocTestSuite
 from zope.proxy import ProxyBase
 
@@ -277,7 +279,6 @@
         P = self.new_proxy
 
         # Before 2.3, coerce() of two proxies returns them unchanged
-        import sys
         fixed_coerce = sys.version_info >= (2, 3, 0)
 
         x = P(1)
@@ -557,7 +558,6 @@
     return suite
 
 if __name__ == "__main__":
-    import sys
     runner = unittest.TextTestRunner(sys.stdout)
     result = runner.run(test_suite())
     newerrs = len(result.errors) + len(result.failures)




More information about the Zope3-Checkins mailing list