Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.7.x] Fixed a deprecation warning on Python 3.

Backport of c19bbef from master
  • Loading branch information...
1 parent fe61ba9 commit 3d74f1f64a78e5aeebb91c76e44d8e318a1c0023 @timgraham timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/utils_tests/
2  tests/utils_tests/
@@ -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

0 comments on commit 3d74f1f

Please sign in to comment.
Something went wrong with that request. Please try again.