Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: Please use assertRaisesRegex instead. #4

Open
mtelka opened this issue Jan 13, 2023 · 1 comment · May be fixed by #5
Open

DeprecationWarning: Please use assertRaisesRegex instead. #4

mtelka opened this issue Jan 13, 2023 · 1 comment · May be fixed by #5

Comments

@mtelka
Copy link

mtelka commented Jan 13, 2023

pydiffx/tests/test_reader.py: 10 warnings
pydiffx/tests/test_utils_unified_diffs.py: 7 warnings
pydiffx/tests/test_dom_objects.py: 22 warnings
pydiffx/tests/test_writer.py: 27 warnings
pydiffx/tests/test_utils_text.py: 2 warnings
  $(@D)/pydiffx/tests/testcases.py:68: DeprecationWarning: Please use assertRaisesRegex instead.
    with self.assertRaisesRegexp(exception, re.escape(message)):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@jonathanspw
Copy link

This causes failures to build on Python 3.12.

See https://bugzilla.redhat.com/show_bug.cgi?id=2175200

@arthurzam arthurzam linked a pull request Jun 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants