Skip to content

Commit 52c94f9

Browse files
author
lidong
committed
remove 3rd test cases
1 parent bc88725 commit 52c94f9

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

morebuiltins/utils.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -839,41 +839,6 @@ def format_error(
839839
... except Exception as e:
840840
... format_error(e, index=slice(-1, None, None))
841841
'[<doctest>:func2(3)] def func2(): 1 / 0 >>> ZeroDivisionError(division by zero)'
842-
>>> try:
843-
... # test without filter
844-
... from pip._internal.utils.encoding import auto_decode
845-
... auto_decode(0)
846-
... except Exception as e:
847-
... "encoding.py:auto_decode" in format_error(e, filter=None)
848-
True
849-
>>> try:
850-
... # test with custom filter.
851-
... from pip._internal.utils.encoding import auto_decode
852-
... auto_decode(0)
853-
... except Exception as e:
854-
... format_error(e, filter=lambda i: '<doctest' in str(i))
855-
"[<doctest>:<module>(4)] auto_decode(0) >>> AttributeError('int' object has no attribute 'startswith')"
856-
>>> try:
857-
... # test with default filter(filename skip -packages)
858-
... from pip._internal.utils.encoding import auto_decode
859-
... auto_decode(0)
860-
... except Exception as e:
861-
... format_error(e)
862-
"[<doctest>:<module>(4)] auto_decode(0) >>> AttributeError('int' object has no attribute 'startswith')"
863-
>>> try:
864-
... # test with filename_filter[0] include string, disable the default filter at first
865-
... from pip._internal.utils.encoding import auto_decode
866-
... auto_decode(0)
867-
... except Exception as e:
868-
... "encoding.py:auto_decode" in format_error(e, filter=None, filename_filter=("-packages", ""))
869-
True
870-
>>> try:
871-
... # test with filename_filter[1] exclude string, disable the default filter at first
872-
... from pip._internal.utils.encoding import auto_decode
873-
... auto_decode(0)
874-
... except Exception as e:
875-
... "encoding.py:auto_decode" in format_error(e, filter=None, filename_filter=("", "-packages"))
876-
False
877842
"""
878843
try:
879844
if filter:

0 commit comments

Comments
 (0)