mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
revert 63425 over Guido's Febuary message about this, that I missed
This commit is contained in:
parent
d7943cb71d
commit
c6d64ec83f
3 changed files with 15 additions and 45 deletions
|
@ -123,20 +123,6 @@ class TestPy3KWarnings(unittest.TestCase):
|
|||
with catch_warning() as w:
|
||||
self.assertWarning(buffer('a'), w, expected)
|
||||
|
||||
def test_hex_and_oct(self):
|
||||
class Spam(object):
|
||||
def __hex__(self): return "0x17"
|
||||
def __oct__(self): return "07"
|
||||
|
||||
expected = 'In 3.x, oct() converts the result of __index__ to octal; ' \
|
||||
'Use future_builtins.oct for this behavior. ' \
|
||||
'Also, note the returned format is different.'
|
||||
with catch_warning() as w:
|
||||
self.assertWarning(oct(Spam()), w, expected)
|
||||
expected = 'In 3.x, hex() converts the result of __index__ to hexadecimal.'
|
||||
with catch_warning() as w:
|
||||
self.assertWarning(hex(Spam()), w, expected)
|
||||
|
||||
|
||||
class TestStdlibRemovals(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue