test_ok2/testing
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 reference from test cases as well 2017-12-11 23:24:47 +05:30
freeze Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
logging Fix additional linting issues 2017-10-24 21:01:00 -02:00
python make linter happier 2017-11-30 10:29:05 +00:00
acceptance_test.py fix restoring Python state after in-process pytest runs 2017-12-17 12:47:50 +01:00
deprecated_test.py fix restoring Python state after in-process pytest runs 2017-12-17 12:47:50 +01:00
test_argcomplete.py Fix crash in FastFilesCompleter with no prefix 2017-09-08 00:14:56 +10:00
test_assertion.py Merge remote-tracking branch 'upstream/features' 2017-11-27 19:37:58 -02:00
test_assertrewrite.py Respect PYTEST_DONT_REWRITE for plugins too. 2017-12-12 17:43:17 -08:00
test_cache.py Use new hook to report accurate tests skipped in --lf and --ff 2017-07-28 08:54:55 -03:00
test_capture.py Implement progress percentage reporting while running tests 2017-11-21 21:01:41 -02:00
test_collection.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_compat.py `compat.safe_getattr` now catches OutcomeExceptions too 2017-08-23 17:17:03 +03:00
test_config.py Improve test that blocks setuptools plugins from being loaded 2017-11-28 21:29:58 -02:00
test_conftest.py simplify test_conftest_found_with_double_dash() test code 2017-12-11 15:10:04 +01:00
test_doctest.py Merge upstream/master into features 2017-11-03 16:37:18 -02:00
test_entry_points.py Add __future__ imports to all pytest modules 2017-03-16 22:45:40 -03:00
test_helpconfig.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_junitxml.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_mark.py Revert making TerminalWriter public in TerminalReporter plugin 2017-11-23 19:53:12 -02:00
test_modimport.py add a comment explaining the modimport tests 2017-03-28 11:45:06 +02:00
test_monkeypatch.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_nodes.py Address more review comments, fix massive bug I reintroduced in the node-splitting code :-/ 2017-10-23 17:49:49 +01:00
test_nose.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_parseopt.py Remove code for unsupported Python versions 2017-10-10 08:54:56 +03:00
test_pastebin.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_pdb.py simplify test_pdb_collection_failure_is_shown test data setup code 2017-12-09 13:34:56 +01:00
test_pluginmanager.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_pytester.py fix restoring Python state after in-process pytest runs 2017-12-17 12:47:50 +01:00
test_recwarn.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_resultlog.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_runner.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_runner_xunit.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_session.py Fix linting E741: ambiguous variable name 2017-11-04 13:59:10 -02:00
test_skipping.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_terminal.py Use classic console output when -s is used 2017-12-16 15:00:23 +02:00
test_tmpdir.py Fixed E302 flake8 errors 2017-07-17 01:44:23 +02:00
test_unittest.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2017-11-10 18:33:02 -02:00
test_warnings.py Only escape str-like arguments passed to warnings 2017-11-27 23:17:15 -02:00