diff options
| author | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
|---|---|---|
| committer | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
| commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
| tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/python/more-itertools/py2/patches/01-fix-tests.patch | |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/python/more-itertools/py2/patches/01-fix-tests.patch')
| -rw-r--r-- | contrib/python/more-itertools/py2/patches/01-fix-tests.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/python/more-itertools/py2/patches/01-fix-tests.patch b/contrib/python/more-itertools/py2/patches/01-fix-tests.patch new file mode 100644 index 00000000000..85602736df2 --- /dev/null +++ b/contrib/python/more-itertools/py2/patches/01-fix-tests.patch @@ -0,0 +1,18 @@ +--- contrib/python/more-itertools/py2/more_itertools/tests/test_more.py (index) ++++ contrib/python/more-itertools/py2/more_itertools/tests/test_more.py (working tree) +@@ -122,13 +122,13 @@ class IterOnlyRange: + raise an ``AttributeError`` rather than ``TypeError`` in Python 2. + + >>> r = IterOnlyRange(5) +- >>> r[0] ++ >>> r[0] # doctest: +SKIP + AttributeError: IterOnlyRange instance has no attribute '__getitem__' + + Note: In Python 3, ``TypeError`` will be raised because ``object`` is + inherited implicitly by default. + +- >>> r[0] ++ >>> r[0] # doctest: +SKIP + TypeError: 'IterOnlyRange' object does not support indexing + """ + def __init__(self, n): |
