pytest2/_pytest
Jurko Gospodnetić f3c9c6e8a8 fix restoring Python state after in-process pytest runs
Now each in-process pytest run saves a snapshot of important global Python
state and restores it after the test completes, including the list of loaded
modules & the Python path settings.

Previously only the loaded package data was getting restored, but that was
also reverting any loaded package changes done in the test triggering the
pytest runs, and not only those done by the pytest runs themselves.

Updated acceptance tests broken by this change, which were only passing before
by accident as they were making multiple pytest runs with later ones depending
on sys.path changes left behind by the initial one.
2017-12-17 12:47:50 +01:00
..
_code remove '_ast' module; and redirect '_ast' references to 'ast' 2017-12-11 23:14:17 +05:30
assertion Change set ops to use methods instead of operators. 2017-12-13 00:54:57 -08:00
__init__.py fix import error 2017-04-26 15:57:55 +02:00
_argcomplete.py Remove code for unsupported Python versions 2017-10-10 08:54:56 +03:00
cacheprovider.py Use new hook to report accurate tests skipped in --lf and --ff 2017-07-28 08:54:55 -03:00
capture.py Add capsysbinary fixture 2017-11-17 09:02:46 -08:00
compat.py Use zip and map from six 2017-10-24 22:13:32 -02:00
config.py Also blacklist pytest-capturelog plugin 2017-12-05 20:02:56 +01:00
debugging.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
deprecated.py Deprecate metafunc.addcall 2017-11-15 15:16:00 -02:00
doctest.py Merge upstream/master into features 2017-11-03 16:37:18 -02:00
fixtures.py Fix memory leak caused by fixture values never been garbage collected 2017-12-13 19:49:06 -02:00
freeze_support.py Fixed E303 flake8 errors 2017-07-17 01:44:23 +02:00
helpconfig.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
hookspec.py Add param annotations and types to hookspec 2017-12-12 18:01:31 -02:00
junitxml.py Move the generic separator to a constant 2017-10-24 10:42:16 +01:00
logging.py Remove logger parameter from catching_logs 2017-12-13 21:13:59 +01:00
main.py Move _patched_find_module to module namespace. 2017-12-12 09:53:06 +00:00
mark.py Merge remote-tracking branch 'upstream/master' into release-3.3.0 2017-11-23 20:20:40 +00:00
monkeypatch.py convert py module references to six module 2017-08-04 08:05:03 +05:30
nodes.py Unused import / lint 2017-10-24 11:25:42 +01:00
nose.py convert py module references to six module 2017-08-04 08:05:03 +05:30
outcomes.py Fix docstring alignment and typos 2017-10-02 21:24:52 -03:00
pastebin.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
pytester.py fix restoring Python state after in-process pytest runs 2017-12-17 12:47:50 +01:00
python.py Extend _pytest.python._idval to return __name__ of functions as well, not just for classes 2017-11-29 16:17:49 +00:00
python_api.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
recwarn.py Fix additional linting issues 2017-10-24 21:01:00 -02:00
resultlog.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
runner.py Always escape null bytes when setting PYTEST_CURRENT_TEST 2017-11-28 19:45:13 -02:00
setuponly.py Refactor some names for better understanding and consistency 2017-09-26 20:09:42 -03:00
setupplan.py Add __future__ imports to all pytest modules 2017-03-16 22:45:40 -03:00
skipping.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
terminal.py Use classic console output when -s is used 2017-12-16 15:00:23 +02:00
tmpdir.py Fixed E265 flake8 errors 2017-07-17 01:44:22 +02:00
unittest.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
warnings.py Only escape str-like arguments passed to warnings 2017-11-27 23:17:15 -02:00