Skip to content

Commit

Permalink
cleanup of deprecated test methods
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 708282906
  • Loading branch information
Edward2 Team authored and edward-bot committed Dec 23, 2024
1 parent 723f839 commit 424f364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edward2/tensorflow/random_variable_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def testStr(self):
x = ed.RandomVariable(tfp.distributions.Normal(0.0, 1.0), value=1.234)
pattern = "RandomVariable(\"1.234\", shape=(), dtype=float32"
regexp = re.escape(pattern)
self.assertRegexpMatches(str(x), regexp)
self.assertRegex(str(x), regexp)

def testRepr(self):
x = ed.RandomVariable(tfp.distributions.Normal(0.0, 1.0), value=1.234)
Expand Down

0 comments on commit 424f364

Please sign in to comment.