Commit 5e58f341 authored by Stefan H. Holek's avatar Stefan H. Holek

Fix stacklevel.

parent ebdc1cd7
...@@ -291,7 +291,7 @@ class FunctionalSuiteFactory(ZopeSuiteFactory): ...@@ -291,7 +291,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