Skip to content

Commit

Permalink
Use assertRegex to remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 6, 2022
1 parent 24339bd commit 6819b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,10 @@ def testEmptyQGraph(self):
fwk = CmdLineFwk()
with self.assertLogs(level=logging.CRITICAL) as cm:
qgraph = fwk.makeGraph(self.pipeline, args)
self.assertRegexpMatches(
self.assertRegex(
cm.output[0], ".*Initial data ID query returned no rows, so QuantumGraph will be empty.*"
)
self.assertRegexpMatches(cm.output[1], ".*No datasets.*bad_input.*")
self.assertRegex(cm.output[1], ".*No datasets.*bad_input.*")
self.assertIsNone(qgraph)

def testSimpleQGraphNoSkipExisting_inputs(self):
Expand Down

0 comments on commit 6819b2d

Please sign in to comment.