Bump pytest from 6.1.2 to 6.2.1
Bumps pytest from 6.1.2 to 6.2.1.
Release notes
Sourced from pytest's releases.
6.2.1
pytest 6.2.1 (2020-12-15)
Bug Fixes
#7678: Fixed bug where
ImportPathMismatchError
would be raised for files compiled in the host and loaded later from an UNC mounted path (Windows).#8132: Fixed regression in
approx
: in 6.2.0approx
no longer raisesTypeError
when dealing with non-numeric types, falling back to normal comparison. Before 6.2.0, array types like tf.DeviceArray fell through to the scalar case, and happened to compare correctly to a scalar if they had only one element. After 6.2.0, these types began failing, because they inherited neither from standard Python number hierarchy nor fromnumpy.ndarray
.
approx
now converts arguments tonumpy.ndarray
if they expose the array protocol and are not scalars. This treats array-like objects like numpy arrays, regardless of size.6.2.0
pytest 6.2.0 (2020-12-12)
Breaking Changes
- #7808: pytest now supports python3.6+ only.
Deprecations
... (truncated)
#7469: Directly constructing/calling the following classes/functions is now deprecated:
_pytest.cacheprovider.Cache
_pytest.cacheprovider.Cache.for_config()
_pytest.cacheprovider.Cache.clear_cache()
_pytest.cacheprovider.Cache.cache_dir_from_config()
_pytest.capture.CaptureFixture
_pytest.fixtures.FixtureRequest
_pytest.fixtures.SubRequest
_pytest.logging.LogCaptureFixture
_pytest.pytester.Pytester
_pytest.pytester.Testdir
_pytest.recwarn.WarningsRecorder
_pytest.recwarn.WarningsChecker
_pytest.tmpdir.TempPathFactory
_pytest.tmpdir.TempdirFactory
These have always been considered private, but now issue a deprecation warning, which may become a hard error in pytest 7.0.0.
Commits
-
d3971c3
Prepare release version 6.2.1 -
780044b
Merge pull request #8147 from nicoddemus/backport-8137 -
8354995
python_api: handle array-like args in approx() (#8137) -
8b8b121
Merge pull request #8135 from nicoddemus/backport-8123 -
f854cf6
Merge pull request #8123 from nicoddemus/import-mismatch-unc -
c475106
Merge pull request #8130 from pytest-dev/release-6.2.0 -
e7073af
Prepare release version 6.2.0 -
683f29f
Merge pull request #8129 from bluetech/docs-pygments-workaround -
0feeddf
doc: temporary workaround for pytest-pygments lexing error -
b478275
Merge pull request #8128 from bluetech/skip-reason-empty - Additional commits viewable in compare view