summaryrefslogtreecommitdiff
path: root/functional_tests/test_multiprocessing/support/class.py
diff options
context:
space:
mode:
Diffstat (limited to 'functional_tests/test_multiprocessing/support/class.py')
-rw-r--r--functional_tests/test_multiprocessing/support/class.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/functional_tests/test_multiprocessing/support/class.py b/functional_tests/test_multiprocessing/support/class.py
new file mode 100644
index 0000000..905bcdf
--- /dev/null
+++ b/functional_tests/test_multiprocessing/support/class.py
@@ -0,0 +1,14 @@
+class TestFunctionalTest(object):
+ counter = 0
+ @classmethod
+ def setup_class(cls):
+ cls.counter += 1
+ @classmethod
+ def teardown_class(cls):
+ cls.counter -= 1
+ def _run(self):
+ assert self.counter==1
+ def test1(self):
+ self._run()
+ def test2(self):
+ self._run()