forked from pool/python-pip
4662065a62
* pytest5.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=68
14 lines
642 B
Diff
14 lines
642 B
Diff
Index: pip-19.1.1+git.1557777841.63878672/tests/unit/test_wheel.py
|
|
===================================================================
|
|
--- pip-19.1.1+git.1557777841.63878672.orig/tests/unit/test_wheel.py
|
|
+++ pip-19.1.1+git.1557777841.63878672/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)
|