[Checkins] SVN: z3c.testsetup/trunk/src/z3c/testsetup/testrunner.py Add convenience wrappers for zope.testing.testrunner.

Uli Fouquet uli at gnufix.de
Mon May 4 06:03:51 EDT 2009


Log message for revision 99697:
  Add convenience wrappers for zope.testing.testrunner.

Changed:
  A   z3c.testsetup/trunk/src/z3c/testsetup/testrunner.py

-=-
Added: z3c.testsetup/trunk/src/z3c/testsetup/testrunner.py
===================================================================
--- z3c.testsetup/trunk/src/z3c/testsetup/testrunner.py	                        (rev 0)
+++ z3c.testsetup/trunk/src/z3c/testsetup/testrunner.py	2009-05-04 10:03:50 UTC (rev 99697)
@@ -0,0 +1,24 @@
+##############################################################################
+#
+# Copyright (c) 2009 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Testrunner convenience stuff.
+"""
+from zope.testing import testrunner
+from zope.testing.testrunner import run
+
+# Convenience mapping to have run_internal() and run() always
+# available and refering to the same function from zope.testing. See
+# `testrunner.txt` (bottom) for details.
+if hasattr(testrunner, 'run_internal'):
+    run = testrunner.run_internal
+run_internal = run



More information about the Checkins mailing list