mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
A fix for Python 2.0 compatibility
[SVN r8256]
This commit is contained in:
@@ -509,8 +509,7 @@ some __str__ and __repr__ tests:
|
||||
>>> range = Range(5, 20)
|
||||
>>> str(range)
|
||||
'(5, 20)'
|
||||
>>> assert re.match('<Range object at [0-9a-fA-F]+>', repr(range))
|
||||
|
||||
>>> assert re.match('<Range object at [0-9a-fA-FxX]+>', repr(range))
|
||||
|
||||
__hash__ and __cmp__ tests:
|
||||
# Range has both __hash__ and __cmp__, thus is hashable
|
||||
|
||||
Reference in New Issue
Block a user