From d879220c101d96081fb86e47a2eed5e73156f623 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 20 Sep 2023 14:17:00 +0000 Subject: [PATCH] Uncap test requirements Newer stestr is needed to avoid failures on Python 3.11 like: nox > stestr run --color stestr: 'run --color' is not a stestr command. Go ahead and uncap all the test dependencies. Also drop the pbr addition for Python<=3.5 since we no longer test with anything older than 3.6 anyway, and fix an exception that hacking seems to really not want us to use. Change-Id: I85585324c4e47d37b6de555110066fb8c29f293f --- git_review/tests/test_unit.py | 2 +- test-requirements.txt | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/git_review/tests/test_unit.py b/git_review/tests/test_unit.py index 1bbdbffc..24e100bf 100644 --- a/git_review/tests/test_unit.py +++ b/git_review/tests/test_unit.py @@ -105,7 +105,7 @@ class GitReviewConsole(testtools.TestCase, fixtures.TestWithFixtures): try: with mock.patch('sys.argv', ['git-review', '--version']): - with self.assertRaisesRegexp(SystemExit, '1'): + with self.assertRaisesRegex(SystemExit, '1'): cmd.main() except Exception as e: self.fail('Exception not expected: %s' % e) diff --git a/test-requirements.txt b/test-requirements.txt index c61b89b4..991e3dd0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,8 +1,4 @@ -# This is listed in order to preinstall PBR with pip as easy_install -# on these older python versions can no longer reliably talk to pypi -# due to non SNI TLS connections being disabled. -pbr ; python_version >= "3" and python_version <= "3.5" -hacking>=2.0.0,<2.1.0 +hacking>=2.0.0 fixtures>=0.3.14 -stestr>=2.2.0,<3.0.0 +stestr>=2.2.0 testtools>=0.9.34