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

Lennart Regebro <[email protected]> Tue, 27 Apr 2010 13:54:35 -0400 (EDT)
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20100427175435.CF27F941BF__5749.83994379199$1272390884$gmane$org@cvs.zope.org>
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