diff options
author | Zuul <zuul@review.opendev.org> | 2023-01-07 00:32:47 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-01-07 00:32:47 +0000 |
commit | 98c84b5f87b89573ea6930bc783f07f2dd5ae8fd (patch) | |
tree | 550de6664af11d94a48a49f3801215f8dfa98ade /pbr/tests/test_integration.py | |
parent | 1ca77814931463993b15fbbb13a26e027a485cd3 (diff) | |
parent | 571e14581d3502b37932b8e7f8c51766cdd001e6 (diff) | |
download | pbr-master.tar.gz |
Diffstat (limited to 'pbr/tests/test_integration.py')
-rw-r--r-- | pbr/tests/test_integration.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/pbr/tests/test_integration.py b/pbr/tests/test_integration.py index 8b5e76a..2f5c0ab 100644 --- a/pbr/tests/test_integration.py +++ b/pbr/tests/test_integration.py @@ -264,16 +264,29 @@ class TestMarkersPip(base.BaseTestCase): allow_fail=False)[0]) -class TestLTSSupport(base.BaseTestCase): - - # These versions come from the versions installed from the 'virtualenv' - # command from the 'python-virtualenv' package. - scenarios = [ +# Handle collections.abc moves in python breaking old pip +# These versions come from the versions installed from the 'virtualenv' +# command from the 'python-virtualenv' package. +if sys.version_info[0:3] < (3, 10, 0): + lts_scenarios = [ + ('Bionic', {'modules': ['pip==9.0.1', 'setuptools==39.0.1']}), + ('Stretch', {'modules': ['pip==9.0.1', 'setuptools==33.1.1']}), + ('EL8', {'modules': ['pip==9.0.3', 'setuptools==39.2.0']}), + ('Buster', {'modules': ['pip==18.1', 'setuptools==40.8.0']}), + ('Focal', {'modules': ['pip==20.0.2', 'setuptools==45.2.0']}), + ] +else: + lts_scenarios = [ ('Bullseye', {'modules': ['pip==20.3.4', 'setuptools==52.0.0']}), ('Focal', {'modules': ['pip==20.0.2', 'setuptools==45.2.0']}), ('Jammy', {'modules': ['pip==22.0.2', 'setuptools==59.6.0']}), ] + +class TestLTSSupport(base.BaseTestCase): + + scenarios = lts_scenarios + @testtools.skipUnless( os.environ.get('PBR_INTEGRATION', None) == '1', 'integration tests not enabled', |