Skip to content

Commit

Permalink
Python: and compatibility layer for Python 2 & <=3.11
Browse files Browse the repository at this point in the history
Python 2 has only assertRaisesRegexp
Python <=3.11 have both assertRaisesRegex and (deprecated) assertRaisesRegexp
Python >=3.12 has only assertRaisesRegex
  • Loading branch information
Mingun committed Apr 14, 2024
1 parent fdd71ae commit 2e117fa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion spec/python/test_eof_exception_bytes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion spec/python/test_eof_exception_u4.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion spec/python/test_eos_exception_bytes.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion spec/python/test_eos_exception_u4.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2e117fa

Please sign in to comment.