diff options
author | holger krekel <holger@merlinux.eu> | 2013-09-30 13:14:14 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2013-09-30 13:14:14 +0200 |
commit | 4b709037abf86e59f4227a8aad4ba8e1c64a0634 (patch) | |
tree | 82f215890995267d70c36933f267e8d3c6c4055e /pytest.py | |
parent | d946299b0a3e42e447c92b6074f196077b9b7a91 (diff) | |
download | pytest-4b709037abf86e59f4227a8aad4ba8e1c64a0634.tar.gz |
some more separation of core pluginmanager from pytest specific functionality.
Idea is to have the PluginManager be re-useable from other projects at some point.
Diffstat (limited to 'pytest.py')
-rw-r--r-- | pytest.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -8,9 +8,11 @@ if __name__ == '__main__': # if run as a script or by 'python -m pytest' # we trigger the below "else" condition by the following import import pytest raise SystemExit(pytest.main()) -else: - # we are simply imported - from _pytest.core import main, UsageError, _preloadplugins - from _pytest import core as cmdline - from _pytest import __version__ - _preloadplugins() # to populate pytest.* namespace so help(pytest) works + +# else we are imported + +from _pytest.config import main, UsageError, _preloadplugins, cmdline +from _pytest import __version__ + +_preloadplugins() # to populate pytest.* namespace so help(pytest) works + |