Skip to content

Commit 8f580bb

Browse files
Edward2 Teamedward-bot
Edward2 Team
authored andcommitted
cleanup of deprecated test methods
PiperOrigin-RevId: 714043546
1 parent 723f839 commit 8f580bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edward2/tensorflow/random_variable_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def testStr(self):
103103
x = ed.RandomVariable(tfp.distributions.Normal(0.0, 1.0), value=1.234)
104104
pattern = "RandomVariable(\"1.234\", shape=(), dtype=float32"
105105
regexp = re.escape(pattern)
106-
self.assertRegexpMatches(str(x), regexp)
106+
self.assertRegex(str(x), regexp)
107107

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

0 commit comments

Comments
 (0)