2019-10-22 15:21:49 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.6
pytest 4.6.6:
Bug Fixes
* Fixed using multiple short options together in the command-line (for example \
-vs) in Python 3.8+.
* Replace importlib_metadata backport with importlib.metadata from the standard \
library on Python 3.8+.
* Fix “lexer” being used when uploading to bpaste.net from --pastebin to \
“text”.
* Fix warnings about deprecated cmp attribute in attrs>=19.2.
Trivial/Internal Changes
* Fixes python version checks (detected by flake8-2020) in case python4 becomes \
a thing.
|
2019-08-22 13:06:28 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.5
pytest 4.6.5:
Bug Fixes
* Fix RuntimeError/StopIteration when trying to collect package with \
“__init__.py” only.
* Fix encode error when using unicode strings in exceptions with pytest.raises.
* 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.
* --step-wise now handles xfail(strict=True) markers properly.
* Improved output when parsing an ini configuration file fails.
pytest 4.6.4:
Bug Fixes
* Emit a warning when attempting to unwrap a broken object raises an exception, \
for easier debugging.
* Fix --stepwise mode when the first file passed on the command-line fails to \
collect.
* Fix bug introduced in 4.6.0 causing collection errors when passing more than 2 \
positional arguments to pytest.mark.parametrize.
* Fix crash when discovery fails while using -p no:terminal.
|
2019-06-13 09:44:54 by Thomas Klausner | Files touched by this commit (1) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: update to 4.6.3nb1.
From the 4.5.0 changelog:
- pytest now depends on wcwidth
Make it so.
|
2019-06-12 12:03:49 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.3
pytest 4.6.3:
Bug Fixes
* -q has again an impact on the style of the collected items (--collect-only) \
when --log-cli-level is used.
* Fix regressions of 5063 for importlib_metadata.PathDistribution which have \
their files attribute being None.
* Fix regression where the obj attribute of TestCase items was no longer bound \
to methods.
|
2019-06-05 07:11:46 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.2
pytest 4.6.2:
Bug Fixes
* Revert unrolling of all() to fix NameError on nested comprehensions.
* Revert unrolling of all() to fix incorrect handling of generators with if.
* Revert unrolling of all() to fix incorrect assertion when using all() in an \
expression
|
2019-06-03 10:42:13 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.1
pytest 4.6.1:
Bug Fixes
* Fix pytest.mark.parametrize when the argvalues is an iterator.
* Fix assertion rewriting of all() calls to deal with non-generators.
|
2019-06-02 10:31:27 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.6.0
pytest 4.6.0:
Important
The 4.6.X series will be the last series to support Python 2 and Python 3.4.
Features
* Added the junit_log_passing_tests ini value which can be used to enable or \
disable logging of passing test output in the Junit XML file.
* pytester’s testdir.spawn uses tmpdir as HOME/USERPROFILE directory.
* Unroll calls to all to full for-loops with assertion rewriting for better \
failure messages, especially when using Generator Expressions.
* Switch from pkg_resources to importlib-metadata for entrypoint detection for \
improved performance and import time.
* The output for ini options in --help has been improved.
* pytest.importorskip includes the ImportError now in the default reason.
* Captured logs that are output for each failing test are formatted using the \
ColoredLevelFormatter.
* Improved formatting of multiline log messages in Python 3.
Bug Fixes
* The debugging plugin imports the wrapped Pdb class (--pdbcls) on-demand now.
* The pytest_enter_pdb hook gets called with post-mortem (--pdb).
* Fix issue where fixtures dependent on other parametrized fixtures would be \
erroneously parametrized.
* Handle internal error due to a lone surrogate unicode character not being \
representable in Jython.
* Ensure that sys.stdout.mode does not include 'b' as it is a text stream.
* Pytest’s internal python plugin can be disabled using -p no:python again.
* Fix issue with \
disable_test_id_escaping_and_forfeit_all_rights_to_community_support option not \
working when using a list of test IDs in parametrized tests.
* Show the test module being collected when emitting PytestCollectionWarning \
messages for test classes with __init__ and __new__ methods to make it easier to \
pin down the problem.
* Fix regression in 4.5.0 with --lf not re-running all tests with known failures \
from non-selected tests.
Improved Documentation
* Expand docs on use of setenv and delenv with monkeypatch.
|
2019-05-14 09:42:01 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.5.0
pytest 4.5.0:
Features
- A warning is now emitted when unknown marks are used as a decorator.
This is often due to a typo, which can lead to silently broken tests.
- Show XFail reason as part of JUnitXML message field.
- Messages from crash reports are displayed within test summaries now, truncated \
to the terminal width.
- New flag --strict-markers that triggers an error when unknown markers (e.g. \
those not registered using the markers option_ in the configuration file) are \
used in the test suite.
The existing --strict option has the same behavior currently, but can be \
augmented in the future for additional checks.
- Assertion failure messages for sequences and dicts contain the number of \
different items now.
- Improve reporting with --lf and --ff (run-last-failure).
- The --cache-show option/action accepts an optional glob to show only matching \
cache entries.
- Standard input (stdin) can be given to pytester's Testdir.run() and \
Testdir.popen().
- The -r option learnt about A to display all reports (including passed ones) in \
the short test summary.
- The short test summary is displayed after passes with output (-rP).
- The --last-failed (--lf) option got smarter and will now skip entire files if \
all tests
of that test file have passed in previous runs, greatly speeding up collection.
- Introduce new specific warning PytestWarning subclasses to make it easier to \
filter warnings based on the class, rather than on the message. The new \
subclasses are:
* PytestAssertRewriteWarning
* PytestCacheWarning
* PytestCollectionWarning
* PytestConfigWarning
* PytestUnhandledCoroutineWarning
* PytestUnknownMarkWarning
- New record_testsuite_property session-scoped fixture allows users to log \
<property> tags at the testsuite
level with the junitxml plugin.
The generated XML is compatible with the latest xunit standard, contrary to
the properties recorded by record_property and record_xml_attribute.
- The default logging format has been changed to improve readability. Here is an
example of a previous logging message::
test_log_cli_enabled_disabled.py 3 CRITICAL critical message logged by test
This has now become::
CRITICAL root:test_log_cli_enabled_disabled.py:3 critical message logged \
by test
The formatting can be changed through the log_format \
<https://docs.pytest.org/en/latest/reference.html#confval-log_format>__ \
configuration option.
- --fixtures now also shows fixture scope for scopes other than "function".
Bug Fixes
- Deselected items from plugins using pytest_collect_modifyitems as a \
hookwrapper are correctly reported now.
- With usage errors exitstatus is set to EXIT_USAGEERROR in the \
pytest_sessionfinish hook now as expected.
- outcome.exit is not used with EOF in the pdb wrapper anymore, but only with quit.
Improved Documentation
- Expand docs on registering marks and the effect of --strict.
Trivial/Internal Changes
- logging.raiseExceptions is not set to False anymore.
- pytest now depends on wcwidth <https://pypi.org/project/wcwidth>__ to \
properly track unicode character sizes for more precise terminal output.
- pytester's Testdir.popen() uses stdout and stderr via keyword arguments with \
defaults now (subprocess.PIPE).
- The code for the short test summary in the terminal was moved to the terminal \
plugin.
- Improved validation of kwargs for various methods in the pytester plugin.
- record_property now emits a PytestWarning when used with junit_family=xunit2: \
the fixture generates
property tags as children of testcase, which is not permitted according to the most
recent schema <https://github.com/jenkinsci/xunit-plugin/blob/master/
src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd>__.
- Pin pluggy to < 1.0 so we don't update to 1.0 automatically when
it gets released: there are planned breaking changes, and we want to ensure
pytest properly supports pluggy 1.0.
|
2019-05-09 13:59:31 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.4.2
pytest 4.4.2:
Bug Fixes
* Fix crash caused by error in __repr__ function with both showlocals and \
verbose output enabled.
* Eliminate core dependency on ‘terminal’ plugin.
* Require pluggy>=0.11.0 which reverts a dependency to importlib-metadata \
added in 0.10.0. The importlib-metadata package cannot be imported when \
installed as an egg and causes issues when relying on setup.py to install test \
dependencies.
Improved Documentation
* Doc: pytest_ignore_collect, pytest_collect_directory, pytest_collect_file and \
pytest_pycollect_makemodule hooks’s ‘path’ parameter documented type is \
now py.path.local
* Improve help for --runxfail flag.
Trivial/Internal Changes
* Removed internal and unused _pytest.deprecated.MARK_INFO_ATTRIBUTE.
|
2019-04-16 09:17:07 by Adam Ciarcinski | Files touched by this commit (2) | ![Package updated](https://pkgsrc.se/images/update.gif) |
Log message:
py-test: updated to 4.4.1
pytest 4.4.1:
Bug Fixes
* Environment variables are properly restored when using pytester’s testdir \
fixture.
* Fix regression with --pdbcls, which stopped working with local modules in 4.0.0.
* Produce a warning when unknown keywords are passed to pytest.param(...).
* Invalidate import caches with monkeypatch.syspath_prepend, which is required \
with namespace packages being used.
|