Skip to content

Commit

Permalink
Fixed a deprecation warning on Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Mar 27, 2014
1 parent c170c37 commit c19bbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils_tests/test_lazyobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c19bbef

Please sign in to comment.