head 1.11; access; symbols pkgsrc-2020Q1:1.10.0.2 pkgsrc-2020Q1-base:1.10 pkgsrc-2019Q4:1.7.0.4 pkgsrc-2019Q4-base:1.7; locks; strict; comment @# @; 1.11 date 2020.05.16.08.00.01; author adam; state dead; branches; next 1.10; commitid bLV7Ni8PV6yCgr8C; 1.10 date 2020.01.30.19.44.13; author adam; state Exp; branches; next 1.9; commitid 0UcyLxZgius1CKUB; 1.9 date 2020.01.22.18.56.04; author adam; state Exp; branches; next 1.8; commitid 2iwwtelCmvysBITB; 1.8 date 2020.01.20.11.56.12; author adam; state Exp; branches; next 1.7; commitid lX5Ph39tE5rklqTB; 1.7 date 2019.12.15.11.30.37; author adam; state Exp; branches; next 1.6; commitid 6lOEKRxOSbdhmNOB; 1.6 date 2019.11.28.06.28.25; author adam; state Exp; branches; next 1.5; commitid dWMUZDIjUfjreAMB; 1.5 date 2019.11.20.08.34.19; author adam; state Exp; branches; next 1.4; commitid kvSkeTQJ8KrkbzLB; 1.4 date 2019.11.18.09.04.48; author adam; state Exp; branches; next 1.3; commitid kitLxlvzbja5qjLB; 1.3 date 2019.11.15.11.01.30; author adam; state Exp; branches; next 1.2; commitid sIh7Wvin4Jo4aWKB; 1.2 date 2019.10.25.09.35.13; author adam; state Exp; branches; next 1.1; commitid QSj38ndFYKlimeIB; 1.1 date 2019.10.22.18.39.38; author adam; state Exp; branches; next ; commitid eVCnKQ6609OgsTHB; desc @@ 1.11 log @py-test: updated to 5.4.2 pytest 5.4.2: Bug Fixes * Fix crash with captured output when using the capsysbinary fixture. * Ensure a unittest.IsolatedAsyncioTestCase is actually awaited. * Fix TerminalRepr instances to be hashable again. * Fix regression where functions registered with TestCase.addCleanup were not being called on test failures. * Allow users to still set the deprecated TerminalReporter.writer attribute. * Revert “tmpdir: clean up indirection via config for factories” 6767 as it breaks pytest-xdist. * Fixed regression: asyncbase.TestCase tests are executed correctly again. * Fix File.from_constructor so it forwards extra keyword arguments to the constructor. * Classes with broken __getattribute__ methods are displayed correctly during failures. * Fix _is_setup_py for files encoded differently than locale. pytest 5.4.1: Bug Fixes * Revert the change introduced by 6330, which required all arguments to @@pytest.mark.parametrize to be explicitly defined in the function signature. The intention of the original change was to remove what was expected to be an unintended/surprising behavior, but it turns out many people relied on it, so the restriction has been reverted. * Fix crash when plugins return an unknown stats while using the --reportlog option. pytest 5.4.0: Breaking Changes * Matching of -k EXPRESSION to test names is now case-insensitive. * Plugins specified with -p are now loaded after internal plugins, which results in their hooks being called before the internal ones. This makes the -p behavior consistent with PYTEST_PLUGINS. * Removed the long-deprecated pytest_itemstart hook. This hook has been marked as deprecated and not been even called by pytest for over 10 years now. * Reversed / fix meaning of “+/-” in error diffs. “-” means that sth. expected is missing in the result and “+” means that there are unexpected extras in the result. * The cached_result attribute of FixtureDef is now set to None when the result is unavailable, instead of being deleted. If your plugin performs checks like hasattr(fixturedef, 'cached_result'), for example in a pytest_fixture_post_finalizer hook implementation, replace it with fixturedef.cached_result is not None. If you del the attribute, set it to None instead. Deprecations * Option --no-print-logs is deprecated and meant to be removed in a future release. If you use --no-print-logs, please try out --show-capture and provide feedback. --show-capture command-line option was added in pytest 3.5.0 and allows to specify how to display captured output when tests fail: no, stdout, stderr, log or all (the default). * Deprecate the unused/broken pytest_collect_directory hook. It was misaligned since the removal of the Directory collector in 2010 and incorrect/unusable as soon as collection was split from test execution. * Deprecate using direct constructors for Nodes. Instead they are now constructed via Node.from_parent. This transitional mechanism enables us to untangle the very intensely entangled Node relationships by enforcing more controlled creation/configuration patterns. As part of this change, session/config are already disallowed parameters and as we work on the details we might need disallow a few more as well. Subclasses are expected to use super().from_parent if they intend to expand the creation of Nodes. * The TerminalReporter.writer attribute has been deprecated and should no longer be used. This was inadvertently exposed as part of the public API of that plugin and ties it too much with py.io.TerminalWriter. Features * New –capture=tee-sys option to allow both live printing and capturing of test output. * Now all arguments to @@pytest.mark.parametrize need to be explicitly declared in the function signature or via indirect. Previously it was possible to omit an argument if a fixture with the same name existed, which was just an accident of implementation and was not meant to be a part of the API. * Changed default for -r to fE, which displays failures and errors in the short test summary. -rN can be used to disable it (the old behavior). * New options have been added to the junit_logging option: log, out-err, and all. * Excess warning summaries are now collapsed per file to ensure readable display of warning summaries. Improvements * pytest.mark.parametrize accepts integers for ids again, converting it to strings. * Use “yellow” main color with any XPASSED tests. * Revert “A warning is now issued when assertions are made for None”. The warning proved to be less useful than initially expected and had quite a few false positive cases. * tmpdir_factory.mktemp now fails when given absolute and non-normalized paths. * The pytest_warning_captured hook now receives a location parameter with the code location that generated the warning. * pytester: the testdir fixture respects environment settings from the monkeypatch fixture for inner runs. * --fulltrace is honored with collection errors. * Make --showlocals work also with --tb=short. * Add support for matching lines consecutively with LineMatcher’s fnmatch_lines() and re_match_lines(). * Code is now highlighted in tracebacks when pygments is installed. Users are encouraged to install pygments into their environment and provide feedback, because the plan is to make pygments a regular dependency in the future. * Import usage error message with invalid -o option. * pytest.mark.parametrize supports iterators and generators for ids. Bug Fixes * Add support for calling pytest.xfail() and pytest.importorskip() with doctests. * --trace now works with unittests. * Fixed some warning reports produced by pytest to point to the correct location of the warning in the user’s code. * Fix --last-failed to collect new tests from files with known failures. * Report PytestUnknownMarkWarning at the level of the user’s code, not pytest’s. * Fix interaction with --pdb and unittests: do not use unittest’s TestCase.debug(). * Fix summary entries appearing twice when f/F and s/S report chars were used at the same time in the -r command-line option (for example -rFf). The upper case variants were never documented and the preferred form should be the lower case. * Fallback to green (instead of yellow) for non-last items without previous passes with colored terminal progress indicator. * --disable-warnings is honored with -ra and -rA. * Fix bug in the comparison of request key with cached key in fixture. A construct if key == cached_key: can fail either because == is explicitly disallowed, or for, e.g., NumPy arrays, where the result of a == b cannot generally be converted to bool. The implemented fix replaces == with is. * Make capture output streams .write() method return the same return value from original streams. * Fix EncodedFile.writelines to call the underlying buffer’s writelines method. * Fix internal crash when faulthandler starts initialized (for example with PYTHONFAULTHANDLER=1 environment variable set) and faulthandler_timeout defined in the configuration file. * Fix node ids which contain a parametrized empty-string variable. * Assertion rewriting hooks are (re)stored for the current item, which fixes them being still used after e.g. pytester’s testdir.runpytest etc. * pytest.exit() is handled when emitted from the pytest_sessionfinish hook. This includes quitting from a debugger. * When pytest.raises() is used as a function (as opposed to a context manager), a match keyword argument is now passed through to the tested function. Previously it was swallowed and ignored (regression in pytest 5.1.0). * Do not display empty lines inbetween traceback for unexpected exceptions with doctests. * The testdir fixture works within doctests now. Improved Documentation * Add list of fixtures to start of fixture chapter. * Expand first sentence on fixtures into a paragraph. Trivial/Internal Changes * Remove usage of parser module, deprecated in Python 3.9. @ text @$NetBSD: distinfo,v 1.10 2020/01/30 19:44:13 adam Exp $ SHA1 (pytest-5.3.5.tar.gz) = ca9aa51026dff9e8368eb18d729a3e227fa679cd RMD160 (pytest-5.3.5.tar.gz) = e03742f5e3e73277ef5bcd49b6373bf70e98657f SHA512 (pytest-5.3.5.tar.gz) = 14877d67aef83d498c8a2917b9633bda317948fa889100e6d1a00547a71f0bfb32d8a01506e97bab6372bfbae17a03aa21bdad8d81072a163a5c9c042498a3b3 Size (pytest-5.3.5.tar.gz) = 990935 bytes @ 1.10 log @py-test5: updated to 5.3.5 pytest 5.3.5: Bug Fixes - Fix regression in pytest 5.3.4 causing an INTERNALERROR due to a wrong assertion. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2020/01/22 18:56:04 adam Exp $ @ 1.9 log @py-test5: updated to 5.3.4 pytest 5.3.4: Bug Fixes Revert 6436: unfortunately this change has caused a number of regressions in many suites, so the team decided to revert this change and make a new release while we continue to look for a solution. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2020/01/20 11:56:12 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.3.4.tar.gz) = 6b0ec2cc1d8bcc310f925eaffbb05c828a821135 RMD160 (pytest-5.3.4.tar.gz) = 7a5c50e8bda76fb590cbce8a28c8edd2f7b259dc SHA512 (pytest-5.3.4.tar.gz) = 562966d74d2ff12715ececa46acdd49de67f5e792687d52b3f53589f6dc6105aed09bd4c5098989d70b8a69e6bb4cfb9c0b1ee7e9cfc8e8252e3ba6b4d39e4bc Size (pytest-5.3.4.tar.gz) = 990897 bytes @ 1.8 log @py-test5: updated to 5.3.3 pytest 5.3.3: Bug Fixes * Captured output during teardown is shown with -rP. * Fix a pytest-xdist crash when dealing with exceptions raised in subprocesses created by the multiprocessing module. * FixtureDef objects now properly register their finalizers with autouse and parameterized fixtures that execute before them in the fixture stack so they are torn down at the right times, and in the right order. * Fix parsing of outcomes containing multiple errors with testdir results (regression in 5.3.0). Trivial/Internal Changes * Optimized automatic renaming of test parameter IDs. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2019/12/15 11:30:37 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.3.3.tar.gz) = 5cee959480d4670ad156857e82e831f97ef0446f RMD160 (pytest-5.3.3.tar.gz) = 52d84c5dd76309bc6696fd43e741509c050d7559 SHA512 (pytest-5.3.3.tar.gz) = 79ac431f6a965d00431d3fa8353c756166d88628acfc254225f495bae9ca5f9e78a0282156a1e523b044a18da5fec9925a1a2aab5fcda3bac39cdaf2dee7be36 Size (pytest-5.3.3.tar.gz) = 990948 bytes @ 1.7 log @py-test5: updated to 5.3.2 pytest 5.3.2: Improvements * Revert “A warning is now issued when assertions are made for None”. The warning proved to be less useful than initially expected and had quite a few false positive cases. Bug Fixes * junitxml: Logs for failed test are now passed to junit report in case the test fails during call phase. * The supporting files in the .pytest_cache directory are kept with --cache-clear, which only clears cached values now. * Fix assertion rewriting for egg-based distributions and editable installs (pip install --editable). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2019/11/28 06:28:25 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.3.2.tar.gz) = 3968347f945bc0c60578d245d65775f83d90ac5a RMD160 (pytest-5.3.2.tar.gz) = c3e91b99a9f5327474e635d32481be79f0ad4383 SHA512 (pytest-5.3.2.tar.gz) = 2ab39973848d2d4693edd1dbd7ab2798b574026c9277bddd4a18e57aec65b3d93de201e87f58eb26030183b5c71818e6e56bcc1cda8c50892546cb1c04d6984a Size (pytest-5.3.2.tar.gz) = 995560 bytes @ 1.6 log @py-test5: updated to 5.3.1 pytest 5.3.1: Improvements * Improve check for misspelling of pytest.mark.parametrize. * Handle exit.Exception raised in notify_exception (via pytest_internalerror), e.g. when quitting pdb from post mortem. Bug Fixes * pytester: fix no_fnmatch_line when used after positive matching. * Fix line detection for doctest samples inside property docstrings, as a workaround to bpo-17446. * Fix compatibility with pytest-parallel (regression in pytest 5.3.0). * Clear the sys.last_traceback, sys.last_type and sys.last_value attributes by deleting them instead of setting them to None. This better matches the behaviour of the Python standard library. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2019/11/20 08:34:19 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.3.1.tar.gz) = 7e6d532201a57c1bc96ebb73ce3ea6ac8d5f66d1 RMD160 (pytest-5.3.1.tar.gz) = ae00029add95e541cb0173f6306cfa610fe0097f SHA512 (pytest-5.3.1.tar.gz) = e949a516c064a7050a0ad15356cc0bf25e4840e830f03e1925530c8a2dd9903d7632e55535894474422ba86fd9ed7a397c483d98dad297990b7b49456147189e Size (pytest-5.3.1.tar.gz) = 994584 bytes @ 1.5 log @py-test5: updated to 5.3.0 pytest 5.3.0: Deprecations * The default value of junit_family option will change to xunit2 in pytest 6.0, given that this is the version supported by default in modern tools that manipulate this type of file. In order to smooth the transition, pytest will issue a warning in case the --junitxml option is given in the command line but junit_family is not explicitly configured in pytest.ini. For more information, see the docs. Features * The pytest team has created the pytest-reportlog plugin, which provides a new --report-log=FILE option that writes report logs into a file as the test session executes. Each line of the report log contains a self contained JSON object corresponding to a testing event, such as a collection or a test result report. The file is guaranteed to be flushed after writing each line, so systems can read and process events in real-time. The plugin is meant to replace the --resultlog option, which is deprecated and meant to be removed in a future release. If you use --resultlog, please try out pytest-reportlog and provide feedback. * When sys.pycache_prefix (Python 3.8+) is set, it will be used by pytest to cache test files changed by the assertion rewriting mechanism. This makes it easier to benefit of cached .pyc files even on file systems without permissions. * Allow selective auto-indentation of multiline log messages. Adds command line option --log-auto-indent, config option log_auto_indent and support for per-entry configuration of indentation behavior on calls to logging.log(). Alters the default for auto-indention from on to off. This restores the older behavior that existed prior to v4.6.0. This reversion to earlier behavior was done because it is better to activate new features that may lead to broken tests explicitly rather than implicitly. * pytester learned two new functions, no_fnmatch_line and no_re_match_line. The functions are used to ensure the captured text does not match the given pattern. The previous idiom was to use re.match: assert re.match(pat, result.stdout.str()) is None Or the in operator: assert text in result.stdout.str() But the new functions produce best output on failure. * Added tolerances to complex values when printing pytest.approx. For example, repr(pytest.approx(3+4j)) returns (3+4j) ± 5e-06 ∠ ±180°. This is polar notation indicating a circle around the expected value, with a radius of 5e-06. For approx comparisons to return True, the actual value should fall within this circle. * Added the pluginmanager as an argument to pytest_addoption so that hooks can be invoked when setting up command line options. This is useful for having one plugin communicate things to another plugin, such as default values or which set of command line options to add. Improvements * Use multiple colors with terminal summary statistics. * Quitting from debuggers is now properly handled in doctest items. * Improved verbose diff output with sequences. Before: After: * Display untruncated assertion message with -vv. * Fixed plurality mismatch in test summary (e.g. display “1 error” instead of “1 errors”). * Config.InvocationParams.args is now always a tuple to better convey that it should be immutable and avoid accidental modifications. * pytest.main now returns a pytest.ExitCode instance now, except for when custom exit codes are used (where it returns int then still). * Align prefixes in output of pytester’s LineMatcher. * Collection errors are reported as errors (and not failures like before) in the terminal’s short test summary. * pytester.spawn does not skip/xfail tests on FreeBSD anymore unconditionally. * The “[XXX%]” indicator in the test summary is now colored according to the final (new) multi-colored line’s main color. * Added --co as a synonym to --collect-only. * atomicwrites is now only used on Windows, fixing a performance regression with assertion rewriting on Unix. * Now parametrization will use the __name__ attribute of any object for the id, if present. Previously it would only use __name__ for functions and classes. * Improved failure reporting with pytester’s Hookrecorder.assertoutcome. * The reason for a stopped session, e.g. with --maxfail / -x, now gets reported in the test summary. * Improved cache.set robustness and performance. Bug Fixes * Fixed --setup-plan showing inaccurate information about fixture lifetimes. * Fixed line offset mismatch of skipped tests in terminal summary. * The PytestDoctestRunner is now properly invalidated when unconfiguring the doctest plugin. This is important when used with pytester’s runpytest_inprocess. * BaseExceptions are now handled in saferepr, which includes pytest.fail.Exception etc. * pytester: fixed order of arguments in rm_rf warning when cleaning up temporary directories, and do not emit warnings for errors with os.open. * Fixed result of getmodpath method. Trivial/Internal Changes * RunResult from pytester now displays the mnemonic of the ret attribute when it is a valid pytest.ExitCode value. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2019/11/18 09:04:48 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.3.0.tar.gz) = a649fad64eff4281797f50825c1cd09ad75c2367 RMD160 (pytest-5.3.0.tar.gz) = c0fa39cf4d8b0d275325ef0933cc4c862363a2d8 SHA512 (pytest-5.3.0.tar.gz) = 285d0b4f6b87b141d6d5dac368dc46eb80dd025d7ed4ad0db937fcc76efc1f8cf251ca9b0786ab1bdadd89c07ad8ddd74f2b3496f97326e9d7fccfd004b98aff Size (pytest-5.3.0.tar.gz) = 992537 bytes @ 1.4 log @py-test5: updated to 5.2.4 pytest 5.2.4: Bug Fixes - Fix incorrect discovery of non-test ``__init__.py`` files. - Revert "The first test in a package (``__init__.py``) marked with ``@@pytest.mark.skip`` is now correctly skipped.". @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2019/11/15 11:01:30 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.2.4.tar.gz) = 5577162ee4980f1634fc9676088ff185770ad8ba RMD160 (pytest-5.2.4.tar.gz) = f6a25ed598f41a2a302791b1faa6d7a45254267c SHA512 (pytest-5.2.4.tar.gz) = b68b2f52a2eaaf0e26c465eb606043bc282eaab22f4f530f3ef66d0dbfa81c477bbb087cb54edcb43f124b69c25788865d5a0083e6f908203130447d12bb7143 Size (pytest-5.2.4.tar.gz) = 976746 bytes @ 1.3 log @py-test5: updated to 5.2.3 pytest 5.2.3: Bug Fixes - The first test in a package (``__init__.py``) marked with ``@@pytest.mark.skip`` is now correctly skipped. - Fix ``--trace`` when used with parametrized functions. - Using ``request`` as a parameter name in ``@@pytest.mark.parametrize`` now produces a more user-friendly error. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2019/10/25 09:35:13 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.2.3.tar.gz) = 62de5e5af60738f48ab295261d5918ee61a9b6c9 RMD160 (pytest-5.2.3.tar.gz) = e3bb9693929170237e58ebe55e86c096a62ba1b3 SHA512 (pytest-5.2.3.tar.gz) = 3cb2e5a5d34ac1ca741ae46a5a16792fa2dceae9cf047b4989f52736d2ef1f1f3381d7b18cff6dc17ccd1aaa2dcb3437bf3596278ec285f68c52639f8039787f Size (pytest-5.2.3.tar.gz) = 976643 bytes @ 1.2 log @py-test5: updated to 5.2.2 pytest 5.2.2: Bug Fixes - Fix ``--nf`` to not forget about known nodeids with partial test selection. - Fix crash with ``KeyboardInterrupt`` during ``--setup-show``. - Fixed issue when parametrizing fixtures with numpy arrays (and possibly other sequence-like types). - Properly ignore ``FileNotFoundError`` exceptions when trying to remove old temporary directories, for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` for example). @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2019/10/22 18:39:38 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.2.2.tar.gz) = 8220a9ac6eb15a6dbc093056b2d39305eff1d3d2 RMD160 (pytest-5.2.2.tar.gz) = e24f37d1120d5dafc76df770d7d323edb95a4b55 SHA512 (pytest-5.2.2.tar.gz) = c7beb885d7b5b089072d9b113add2f3d0cca794668f2f641e05f433e6c7023556e1d04f348e8b4510feb6236a1d44beb3f890884245c6d212e43553e39db0186 Size (pytest-5.2.2.tar.gz) = 975772 bytes @ 1.1 log @py-test5: added version 5.2.1 pytest 5.2.1: Bug Fixes * Fix warnings about deprecated cmp attribute in attrs>=19.2. pytest 5.2.0: Deprecations * Passing arguments to pytest.fixture() as positional arguments is deprecated - pass them as a keyword argument instead. Features * The scope parameter of @@pytest.fixture can now be a callable that receives the fixture name and the config object as keyword-only parameters. See the docs for more information. * New behavior of the --pastebin option: failures to connect to the pastebin server are reported, without failing the pytest run Bug Fixes * Fix “lexer” being used when uploading to bpaste.net from --pastebin to “text”. * Fix --setup-only and --setup-show for custom pytest items. Trivial/Internal Changes * The HelpFormatter uses py.io.get_terminal_width for better width detection. pytest 5.1.3: Bug Fixes * Fix pypy3.6 (nightly) on windows. * Handle --fulltrace correctly with pytest.raises. * Windows: Fix regression with conftest whose qualified name contains uppercase characters. pytest 5.1.2: Bug Fixes * Fixed self reference in function-scoped fixtures defined plugin classes: previously self would be a reference to a test class, not the plugin class. * Fixed long standing issue where fixture scope was not respected when indirect fixtures were used during parametrization. * Fix decoding error when printing an error response from --pastebin. * Chained exceptions in test and collection reports are now correctly serialized, allowing plugins like pytest-xdist to display them properly. * Windows: Fix error that occurs in certain circumstances when loading conftest.py from a working directory that has casing other than the one stored in the filesystem (e.g., c:\test instead of C:\test). pytest 5.1.1: Bug Fixes * Fixed TypeError when importing pytest on Python 3.5.0 and 3.5.1. pytest 5.1.0: Removals * As per our policy, the following features have been deprecated in the 4.X series and are now removed: Request.getfuncargvalue: use Request.getfixturevalue instead. pytest.raises and pytest.warns no longer support strings as the second argument. message parameter of pytest.raises. pytest.raises, pytest.warns and ParameterSet.param now use native keyword-only syntax. This might change the exception message from previous versions, but they still raise TypeError on unknown keyword arguments as before. pytest.config global variable. tmpdir_factory.ensuretemp method. pytest_logwarning hook. RemovedInPytest4Warning warning type. request is now a reserved name for fixtures. For more information consult Deprecations and Removals in the docs. * Removed unused support code for unittest2. * pytest.fail, pytest.xfail and pytest.skip no longer support bytes for the message argument. Features * New Config.invocation_args attribute containing the unchanged arguments passed to pytest.main(). * New NUMBER option for doctests to ignore irrelevant differences in floating-point numbers. Inspired by Sébastien Boisgérault’s numtest extension for doctest. Improvements * JUnit XML now includes a timestamp and hostname in the testsuite tag. * Time taken to run the test suite now includes a human-readable representation when it takes over 60 seconds, for example: Bug Fixes * Fix RuntimeError/StopIteration when trying to collect package with “__init__.py” only. * Warnings issued during pytest_configure are explicitly not treated as errors, even if configured as such, because it otherwise completely breaks pytest. * The XML file produced by --junitxml now correctly contain a root element. * Fix issue where tmp_path and tmpdir would not remove directories containing files marked as read-only, which could lead to pytest crashing when executed a second time with the --basetemp option. * Replace importlib_metadata backport with importlib.metadata from the standard library on Python 3.8+. * Improve type checking for some exception-raising functions (pytest.xfail, pytest.skip, etc) so they provide better error messages when users meant to use marks (for example @@pytest.xfail instead of @@pytest.mark.xfail). * Fixed internal error when test functions were patched with objects that cannot be compared for truth values against others, like numpy arrays. * pytest.exit is now correctly handled in unittest cases. This makes unittest cases handle quit from pytest’s pdb correctly. * Improved output when parsing an ini configuration file fails. * Fix collection of staticmethod objects defined with functools.partial. * Skip async generator test functions, and update the warning message to refer to async def functions. Improved Documentation * Add docstring for Testdir.copy_example. Trivial/Internal Changes * XML files of the xunit2 family are now validated against the schema by pytest’s own test suite to avoid future regressions. * Cache node splitting function which can improve collection performance in very large test suites. * Simplified internal SafeRepr class and removed some dead code. * When invoking pytest’s own testsuite with PYTHONDONTWRITEBYTECODE=1, the test_xfail_handling test no longer fails. * Replace manual handling of OSError.errno in the codebase by new OSError subclasses (PermissionError, FileNotFoundError, etc.). pytest 5.0.1: Bug Fixes * Improve quoting in raises match failure message. * Fixed using multiple short options together in the command-line (for example -vs) in Python 3.8+. * --step-wise now handles xfail(strict=True) markers properly. Improved Documentation * Improve “Declaring new hooks” section in chapter “Writing Plugins” pytest 5.0.0: Important This release is a Python3.5+ only release. For more details, see our Python 2.7 and 3.4 support plan. Removals * Pytest no longer accepts prefixes of command-line arguments, for example typing pytest --doctest-mod inplace of --doctest-modules. This was previously allowed where the ArgumentParser thought it was unambiguous, but this could be incorrect due to delayed parsing of options for plugins. * PytestDeprecationWarning are now errors by default. * ExceptionInfo objects (returned by pytest.raises) now have the same str representation as repr, which avoids some confusion when users use print(e) to inspect the object. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.77 2019/08/22 11:06:28 adam Exp $ d3 4 a6 4 SHA1 (pytest-5.2.1.tar.gz) = 1b9e04d78189b910e8bc4fc1aeecca0b4ce4aa00 RMD160 (pytest-5.2.1.tar.gz) = 8f62e2d0ba5d733fc4330007adde05820f47307a SHA512 (pytest-5.2.1.tar.gz) = 0782f044640a0e1333abddcb269710d6acc13ee5b849b2763878b7803ba14491b18a220d43a0723bc5e3fac9705a1f925655044d0a958554496b9650f3b5871a Size (pytest-5.2.1.tar.gz) = 971744 bytes @