test_ok1/testing
Ran Benita 03451c397f Simplify positional arguments compatibility code in pytest.fixture()
The dynamic scope feature added in 10bf6aac76
necessitated some wrangling of arguments in pytest.fixture(). In
particular, it deprecated positional arguments in favor of keyword-only
arguments, while keeping backward compatibility.

The way it did this avoided some code duplication but ended up being
quite hard to follow and to annotate with types.

Replace it with some straightforward code, which is not very DRY but is
simple and easy to remove when the time comes.
2020-04-02 14:52:58 +03:00
..
code Improve doc/typing/message for `ExceptionInfo.match` (#6776) 2020-02-21 16:41:57 +01:00
example_scripts prepare tests and disable warnings for asyncio unittest cases 2020-03-30 21:55:12 +02:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze Replace a few outdated references to py.test with pytest 2019-10-26 16:28:17 +03:00
io _pformat_dispatch: pass through args (#6715) 2020-02-12 16:07:57 +01:00
logging tests: test_collection_collect_only_live_logging: allow for 1s 2020-01-25 18:14:49 +01:00
python Simplify positional arguments compatibility code in pytest.fixture() 2020-04-02 14:52:58 +03:00
acceptance_test.py Improved time counter used to compute test durations. (#6939) 2020-03-29 15:20:09 +03:00
conftest.py Assorted improvements following up #6658 2020-02-20 18:51:41 -03:00
deprecated_test.py deprecate the pytest.collect module 2020-03-30 21:53:07 +02:00
test_argcomplete.py Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
test_assertion.py tests: harden test_reprcompare_notin, factor out callop (#6764) 2020-03-08 01:23:19 +01:00
test_assertrewrite.py Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
test_cacheprovider.py LFPlugin: use sub-plugins to deselect during collection (#6448) 2020-02-19 21:33:03 +01:00
test_capture.py Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
test_collection.py fix #571: deprecate pytest_collect_directory as ... (#6847) 2020-03-03 18:58:14 -03:00
test_compat.py tests: cover safe_getattr 2020-01-15 11:20:00 +01:00
test_config.py pre-commit run --all-files 2020-03-07 23:47:55 +01:00
test_conftest.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_debugging.py Merge remote-tracking branch 'upstream/master' into mm 2020-01-22 11:03:45 -03:00
test_doctest.py doctest: strip newlines with unexpected exceptions (#6801) 2020-02-24 15:18:08 +01:00
test_entry_points.py Replace importlib_metadata with importlib.metadata on Python 3.8+ 2019-07-04 15:00:10 +02:00
test_error_diffs.py Reverse / fix meaning of "+/-" in error diffs 2020-02-10 21:12:37 +01:00
test_faulthandler.py tests: fix flaky test_timeout (#6773) 2020-02-21 12:52:31 +01:00
test_helpconfig.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_junitxml.py Add a typing-compatible mechanism for ad-hoc attributes on various objects 2020-02-28 14:34:44 +02:00
test_main.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_mark.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_meta.py Keep (revisited) comment from https://github.com/pytest-dev/pytest/commit/4d31ea831 2020-02-03 14:04:16 +01:00
test_monkeypatch.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_nodes.py fix #6341 - disallow session/config in Node.from_parent 2020-01-15 13:00:46 +01:00
test_nose.py Node.location: handle str with _node_location_to_relpath 2020-01-23 10:45:31 +01:00
test_parseopt.py Merge remote-tracking branch 'upstream/master' into mm 2020-02-11 19:22:28 -03:00
test_pastebin.py Fix "lexer" being used when uploading to bpaste.net 2019-08-30 15:34:03 -04:00
test_pathlib.py Switch from deprecated imp to importlib 2019-06-24 09:48:38 -07:00
test_pluginmanager.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_pytester.py Fix usage of pytester with doctests (#6802) 2020-03-04 05:33:50 +01:00
test_recwarn.py Use a hack to make typing of pytest.fail.Exception & co work 2020-02-18 23:17:27 +02:00
test_reports.py Use a dummy RemoteTraceback for test in Python 3.5 Windows 2020-01-16 20:03:16 +01:00
test_resultlog.py Handle unknown stats in pytest_report_teststatus hook 2020-03-12 20:52:22 -03:00
test_runner.py tests: runner: improve/ignore coverage (#6781) 2020-02-21 14:37:56 +01:00
test_runner_xunit.py Fix plurality mismatch for and in pytest terminal summary 2019-10-27 15:16:24 +00:00
test_session.py Simplify test_rootdir_wrong_option_arg (#6812) 2020-02-28 18:38:07 +01:00
test_setuponly.py Move ExitCode's definition from _pytest.main to _pytest.config 2020-02-10 23:55:06 +02:00
test_setupplan.py Merge remote-tracking branch 'upstream/master' into release-5.3.0 2019-11-19 12:42:11 -03:00
test_skipping.py re-run black 2019-11-16 18:55:32 +01:00
test_stepwise.py tests: test_xfail_handling: use sys.dont_write_bytecode 2020-01-11 23:05:12 +01:00
test_store.py Add setdefault() method to Store 2020-03-06 11:42:20 +02:00
test_terminal.py tests: harden/improve test_itemreport_subclasses_show_subclassed_file (#6467) 2020-02-21 15:24:12 +01:00
test_tmpdir.py Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
test_unittest.py prepare tests and disable warnings for asyncio unittest cases 2020-03-30 21:55:12 +02:00
test_warning_types.py Make pytest warnings show as from 'pytest' module instead of '_pytest.warning_types' 2019-06-15 11:48:34 -03:00
test_warnings.py Fix linting 2020-03-27 09:54:20 -03:00