2
0
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:
Dave Abrahams
2000-11-19 16:40:25 +00:00
parent 3221939c1f
commit c15c9f4236

View File

@@ -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