Skip to content

Commit 6e354dd

Browse files
committed
remove case sensitive error message for FileNotFoundError
1 parent 5f723db commit 6e354dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_doctest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,12 +3039,10 @@ def test_CLI(): r"""
30393039
... '-m', 'doctest', 'nosuchfile')
30403040
>>> rc, out
30413041
(1, b'')
3042-
>>> if sys.platform == "vxworks":
3043-
... err = err.replace(b'no such file', b'No such file')
30443042
>>> print(normalize(err)) # doctest: +ELLIPSIS
30453043
Traceback (most recent call last):
30463044
...
3047-
FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile'
3045+
FileNotFoundError: [Errno ...] ...nosuchfile...
30483046
30493047
Invalid doctest option:
30503048

0 commit comments

Comments
 (0)