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

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


Log message for revision 74030:
  Fix stacklevel.
  

Changed:
  U   Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py

-=-
Modified: Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2007-04-05 20:13:17 UTC (rev 74029)
+++ Zope/branches/2.9/lib/python/Testing/ZopeTestCase/zopedoctest/functional.py	2007-04-05 20:14:04 UTC (rev 74030)
@@ -299,7 +299,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