Commit de614302 authored by Stefan H. Holek's avatar Stefan H. Holek

Fix stacklevel.

parent d7a60549
...@@ -299,7 +299,7 @@ class FunctionalSuiteFactory(ZopeSuiteFactory): ...@@ -299,7 +299,7 @@ class FunctionalSuiteFactory(ZopeSuiteFactory):
name = test_class.__name__ name = test_class.__name__
warnings.warn(("The test_class you are using doesn't " warnings.warn(("The test_class you are using doesn't "
"subclass from ZopeTestCase.Functional. " "subclass from ZopeTestCase.Functional. "
"Please fix that."), UserWarning, 2) "Please fix that."), UserWarning, 4)
if not 'Functional' in name: if not 'Functional' in name:
name = 'Functional%s' % name name = 'Functional%s' % name
test_class = type(name, (Functional, test_class), {}) test_class = type(name, (Functional, test_class), {})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment