Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_unicode.py @ 68399:ee259a4f3eee
Issue 9856: Change object.__format__ with a non-empty format string from a PendingDeprecationWarning to a DeprecationWarning.
| author | Eric V. Smith <eric@trueblade.com> |
|---|---|
| date | Sat, 12 Mar 2011 10:08:48 -0500 |
| parents | b39270c6b8d1 |
| children | a1a1296556d7 |
line wrap: on
line diff
--- a/Lib/test/test_unicode.py Sat Mar 12 15:56:09 2011 +0100 +++ b/Lib/test/test_unicode.py Sat Mar 12 10:08:48 2011 -0500 @@ -614,7 +614,7 @@ self.assertEqual('{0!s}'.format(G('data')), 'string is data') msg = 'object.__format__ with a non-empty format string is deprecated' - with support.check_warnings((msg, PendingDeprecationWarning)): + with support.check_warnings((msg, DeprecationWarning)): self.assertEqual('{0:^10}'.format(E('data')), ' E(data) ') self.assertEqual('{0:^10s}'.format(E('data')), ' E(data) ') self.assertEqual('{0:>15s}'.format(G('data')), ' string is data')
