diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-27 06:59:54 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-27 07:01:04 -0400 |
| commit | 3d74f1f64a78e5aeebb91c76e44d8e318a1c0023 (patch) | |
| tree | b1da5aef51df4cf54aa71e4eea89efac537b8be8 | |
| parent | fe61ba91c723b77173fc3221dbd92ad267cbd3a9 (diff) | |
[1.7.x] Fixed a deprecation warning on Python 3.
Backport of c19bbefca2 from master
| -rw-r--r-- | tests/utils_tests/test_lazyobject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_lazyobject.py b/tests/utils_tests/test_lazyobject.py index 67b857aa4d..5d1989680a 100644 --- a/tests/utils_tests/test_lazyobject.py +++ b/tests/utils_tests/test_lazyobject.py @@ -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 |
