Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a deprecation warning on Python 3.

  • Loading branch information...
commit c19bbefca2b51f8d9052424044ab5beb8dafdf3d 1 parent c170c37
Tim Graham timgraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/utils_tests/test_lazyobject.py
2  tests/utils_tests/test_lazyobject.py
View
@@ -218,7 +218,7 @@ def test_repr(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.