Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fec905 commit 36c41bcCopy full SHA for 36c41bc
2 files changed
Lib/test/test_tabnanny.py
@@ -6,6 +6,8 @@
6
from unittest import TestCase, mock
7
from unittest import mock
8
import errno
9
+import os
10
+import sys
11
import tabnanny
12
import tokenize
13
import tempfile
@@ -233,8 +235,8 @@ def test_when_nannynag_error(self):
233
235
def test_when_no_file(self):
234
236
"""A python file which does not exist actually in system."""
237
path = 'no_file.py'
- err = f"{path!r}: I/O Error: [Errno {errno.ENOENT}] " \
- f"No such file or directory: {path!r}\n"
238
+ err = (f"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
239
+ f"{os.strerror(errno.ENOENT)}: {path!r}\n")
240
self.verify_tabnanny_check(path, err=err)
241
242
def test_errored_directory(self):
Misc/NEWS.d/next/Tests/2019-04-01-16-06-36.bpo-31904.peaceF.rst
@@ -0,0 +1 @@
1
+Fix test_tabnanny on VxWorks: adjust ENOENT error message.
0 commit comments