Kaydet (Commit) c19bbefc authored tarafından Tim Graham's avatar Tim Graham

Fixed a deprecation warning on Python 3.

üst c170c376
......@@ -218,7 +218,7 @@ class SimpleLazyObjectTestCase(LazyObjectTestCase):
obj = self.lazy_wrap(42)
# __repr__ contains __repr__ of setup function and does not evaluate
# the SimpleLazyObject
self.assertRegexpMatches(repr(obj), '^<SimpleLazyObject:')
six.assertRegex(self, repr(obj), '^<SimpleLazyObject:')
self.assertIs(obj._wrapped, empty) # make sure evaluation hasn't been triggered
self.assertEqual(obj, 42) # evaluate the lazy object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment