summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Douard <david.douard@logilab.fr>2016-06-10 17:52:28 +0200
committerDavid Douard <david.douard@logilab.fr>2016-06-10 17:52:28 +0200
commit63e119f3e672121ac4bcd26c4e9c2388a92b6b49 (patch)
tree5d9291b51d17d77c7dab3b222fbe417455c3fc09
parent26b444498905c8e943601bb19c54d83c379d5044 (diff)
downloadlogilab-common-63e119f3e672121ac4bcd26c4e9c2388a92b6b49.tar.gz
[pytest] make pytest module runnable
so one can type "python -m logilab.common.pytest"
-rw-r--r--logilab/common/pytest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/logilab/common/pytest.py b/logilab/common/pytest.py
index 11647b7..f5fb8ff 100644
--- a/logilab/common/pytest.py
+++ b/logilab/common/pytest.py
@@ -1296,3 +1296,7 @@ else:
unittest.FunctionTestCase.__bases__ = (testlib.TestCase,)
unittest.TestSuite.run = _ts_run
unittest.TestSuite._wrapped_run = _ts_wrapped_run
+
+if __name__ == '__main__':
+ run()
+