01-fix-tests.patch 632 B

1234567891011121314151617
  1. --- contrib/python/more-itertools/py3/tests/test_more.py (index)
  2. +++ contrib/python/more-itertools/py3/tests/test_more.py (working tree)
  3. @@ -177,13 +177,13 @@ class IterOnlyRange:
  4. """User-defined iterable class which only support __iter__.
  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. """