Skip to content

Commit e5c4e55

Browse files
ezd1000ezd1000
authored andcommitted
Updated error message checking to comply with Python 3.12 syntax
1 parent 9fd5a6d commit e5c4e55

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

unit_tests/test_DBRunner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ def test_parse_dbrunner_args_bad(self):
8686
finally:
8787
sys.stderr.close()
8888
sys.stderr = oldstderr
89-
self.assertEqual(
90-
'{}: error: {}'.format(os.path.basename(sys.argv[0]), msg), err)
91-
92-
89+
running_script = os.path.basename(sys.argv[0])
90+
self.assertTrue(err.startswith("{}: error: argument".format(running_script)))
9391
class DBRunnerCalcRunmeTests(unittest.TestCase, dbp_testing.AddtoDBMixin):
9492
"""DBRunner tests of calc_runme"""
9593

0 commit comments

Comments
 (0)