requirements/openstack_requirements/tests
Dr. Jens Harbott c7d98564d0 Fix pkg_resources exception handling for py312
The exception that is generated on parsing errors has changed in Python
3.12, match on the generic ValueError instead. Also switch to using
the simpler assertRaises() call instead of explicitly dealing with
exceptions.

Note that this is just a temporary workaround, we should really move
away for using pkg_resources completely, see [0] and [1].

[0] https://setuptools.pypa.io/en/latest/pkg_resources.html
[1] https://importlib-resources.readthedocs.io/en/latest/migration.html

Change-Id: I20422194f6fc6d1c4ba49da754a2c3aab99a282c
2024-06-20 03:22:07 +00:00
..
files Remove the Sahara deliverables from req 2024-05-16 16:54:42 -07:00
__init__.py Move tests into openstack_requirements. 2015-06-08 22:07:01 +12:00
common.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
test_build_lower_constraints.py Ignore empty requirements/constraints when building lower-constraints 2018-07-05 09:48:55 +10:00
test_check.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
test_check_constraints.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
test_constraints.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
test_edit_constraint.py Deal with underscores in names in edit-constraints 2015-09-17 10:12:11 +12:00
test_generate.py Improve terminology in the requirements tree 2024-05-14 10:08:34 +02:00
test_project.py add validation rules for lower constraints 2018-03-29 12:58:57 -04:00
test_requirement.py Fix pkg_resources exception handling for py312 2024-06-20 03:22:07 +00:00