aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/more-itertools/py3/patches/01-fix-tests.patch
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/python/more-itertools/py3/patches/01-fix-tests.patch
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/python/more-itertools/py3/patches/01-fix-tests.patch')
-rw-r--r--contrib/python/more-itertools/py3/patches/01-fix-tests.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/contrib/python/more-itertools/py3/patches/01-fix-tests.patch b/contrib/python/more-itertools/py3/patches/01-fix-tests.patch
new file mode 100644
index 00000000000..497d4d8da4c
--- /dev/null
+++ b/contrib/python/more-itertools/py3/patches/01-fix-tests.patch
@@ -0,0 +1,17 @@
+--- contrib/python/more-itertools/py3/tests/test_more.py (index)
++++ contrib/python/more-itertools/py3/tests/test_more.py (working tree)
+@@ -177,13 +177,13 @@ class IterOnlyRange:
+ """User-defined iterable class which only support __iter__.
+
+ >>> 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
+ """