01-fix-tests.patch 700 B

123456789101112131415161718
  1. --- contrib/python/more-itertools/py2/more_itertools/tests/test_more.py (index)
  2. +++ contrib/python/more-itertools/py2/more_itertools/tests/test_more.py (working tree)
  3. @@ -122,13 +122,13 @@ class IterOnlyRange:
  4. raise an ``AttributeError`` rather than ``TypeError`` in Python 2.
  5. >>> r = IterOnlyRange(5)
  6. - >>> r[0]
  7. + >>> r[0] # doctest: +SKIP
  8. AttributeError: IterOnlyRange instance has no attribute '__getitem__'
  9. Note: In Python 3, ``TypeError`` will be raised because ``object`` is
  10. inherited implicitly by default.
  11. - >>> r[0]
  12. + >>> r[0] # doctest: +SKIP
  13. TypeError: 'IterOnlyRange' object does not support indexing
  14. """
  15. def __init__(self, n):