diff options
author | David Douard <david.douard@logilab.fr> | 2016-06-10 17:52:28 +0200 |
---|---|---|
committer | David Douard <david.douard@logilab.fr> | 2016-06-10 17:52:28 +0200 |
commit | 63e119f3e672121ac4bcd26c4e9c2388a92b6b49 (patch) | |
tree | 5d9291b51d17d77c7dab3b222fbe417455c3fc09 /logilab/common | |
parent | 26b444498905c8e943601bb19c54d83c379d5044 (diff) | |
download | logilab-common-63e119f3e672121ac4bcd26c4e9c2388a92b6b49.tar.gz |
[pytest] make pytest module runnable
so one can type "python -m logilab.common.pytest"
Diffstat (limited to 'logilab/common')
-rw-r--r-- | logilab/common/pytest.py | 4 |
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() + |