Skip to content

Commit

Permalink
Check error msg less strictly to support Python 3.8 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Jan 17, 2024
1 parent 4845f37 commit 2959d71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,10 @@ def test_code_quality_abspath_failure(self):
'--config', 'tests/test_in/config_example.json',
'tests/test_in/mixed_warnings.txt',
])
self.assertEqual(
str(c_m.exception),
self.assertTrue(str(c_m.exception).startswith(
"Failed to convert abolute path to relative path for Code Quality report: "
f"'/home/user/myproject/helper/SimpleTimer.h' is not in the subpath of '{Path.cwd()}' OR "
"one path is relative and the other is absolute.")
"'/home/user/myproject/helper/SimpleTimer.h'")
)

def test_cq_description_format_missing_envvar(self):
os.environ['FIRST_ENVVAR'] = 'envvar_value'
Expand Down

0 comments on commit 2959d71

Please sign in to comment.