[Zope3-checkins] SVN: zope.testing/branches/regebro-py3-3rdtimelucky/src/zope/testing/testrunner.py Testrunner BBB + DeprecationWarning. I'm amazed this actually works... :)

Lennart Regebro regebro at gmail.com
Tue Apr 27 13:54:35 EDT 2010


Log message for revision 111506:
  Testrunner BBB + DeprecationWarning. I'm amazed this actually works... :)
  

Changed:
  A   zope.testing/branches/regebro-py3-3rdtimelucky/src/zope/testing/testrunner.py

-=-
Added: zope.testing/branches/regebro-py3-3rdtimelucky/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/branches/regebro-py3-3rdtimelucky/src/zope/testing/testrunner.py	                        (rev 0)
+++ zope.testing/branches/regebro-py3-3rdtimelucky/src/zope/testing/testrunner.py	2010-04-27 17:54:35 UTC (rev 111506)
@@ -0,0 +1,11 @@
+import warnings
+warnings.warn('zope.testing.testrunner is deprecated in favour of '
+              'zope.testrunner', DeprecationWarning, stacklevel=2)
+
+try:
+    from zope import testrunner
+    import zope.testing
+    # Now replace this module with the right one:
+    zope.testing.testrunner = testrunner
+except ImportError:
+    pass
\ No newline at end of file



More information about the Zope3-Checkins mailing list