unittest2.TestCase setUpClass implementations not called
I've installed unittest2 module over Python 2.6 in order to take advantage of setUpClass/tearDownClass
import unittest2
class FunctionalTest(unittest2.TestCase):
@classmethod
def setUpClass(cls):
cls._hrs = HotRodServer()
cls._hrs.start_local()
time.sleep(5)
But this method is never called when running from PyCharm 1.1.1.
Judging from the stacktrace when putting a break point in the 1st test run, I don't think /unittest2/suite.py is being run but instead:
[PYCHARM_HOME]/helpers/pycharm/nose_helper/suite.py
Any idea how to get around this issue?
Please sign in to leave a comment.
Hello Galder,
This is a bug. Please file an issue at http://youtrack.jetbrains.net/
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
For interest of the rest of the audience: http://youtrack.jetbrains.net/issue/PY-2809