[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py Fix stacklevel.

Stefan H. Holek stefan at epy.co.at
Thu Apr 5 16:14:40 EDT 2007


Log message for revision 74031:
  Fix stacklevel.
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2007-04-05 20:14:04 UTC (rev 74030)
+++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2007-04-05 20:14:40 UTC (rev 74031)
@@ -287,7 +287,7 @@
             name = test_class.__name__
             warnings.warn(("The test_class you are using doesn't "
                            "subclass from ZopeTestCase.Functional. "
-                           "Please fix that."), UserWarning, 2)
+                           "Please fix that."), UserWarning, 4)
             if not 'Functional' in name:
                 name = 'Functional%s' % name
             test_class = type(name, (Functional, test_class), {})



More information about the Zope-Checkins mailing list