python-pip/pytest5.patch
Tomáš Chvátal ed5c541dc1 Accepting request 741057 from home:mcalabkova:branches:devel:languages:python
- Update to version 19.3.1
  * Document Python 3.8 support.
  * Fix bug that prevented installation of PEP 517 packages without setup.py.
  * Remove undocumented support for un-prefixed URL requirements pointing to SVN repositories.
  * Remove the deprecated --venv option from pip config.
  * Make pip show warn about packages not found.
  * Abort installation if any archive contains a file which would be placed outside the extraction location.
  * pip's CLI completion code no longer prints a Traceback if it is interrupted.
  * Ignore errors copying socket files for local source installs (in Python 3).
  * Skip copying .tox and .nox directories to temporary build directories
  * Ignore "require_virtualenv" in pip config

OBS-URL: https://build.opensuse.org/request/show/741057
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=74
2019-10-18 12:29:37 +00:00

14 lines
570 B
Diff

Index: pip-19.1.1/tests/unit/test_wheel.py
===================================================================
--- pip-19.1.1.orig/tests/unit/test_wheel.py
+++ pip-19.1.1/tests/unit/test_wheel.py
@@ -378,7 +378,7 @@ def test_check_compatibility():
# test raises with correct error
with pytest.raises(UnsupportedWheel) as e:
wheel.check_compatibility(higher_v, name)
- assert 'is not compatible' in str(e)
+ assert 'is not compatible' in str(e.value)
# Should only log.warning - minor version is greater
higher_v = (vc[0], vc[1] + 1)