logilab-common #92013 Remove monkey patching from pytest [open]
monkey patching in pytest.py can lead to unexpected behaviour when using unittest2, it would be nice to remove the monkey patching (cf http://www.cubicweb.org/ticket/2314950) | |
priority | normal |
---|---|
type | enhancement |
done in | <not specified> |
closed by | <not specified> |
Comments
-
2014/11/18 11:21, written by cdevienne
add commentThe following code is a workaround this nasty monkey-patching:
import unittest
save_testrunner = unittest.TextTestRunner
import logilab.common.pytest # noqa
unittest.TextTestRunner = save_testrunner