Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Lib/test/test_tabnanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from unittest import TestCase, mock
from unittest import mock
import errno
import os
import sys
import tabnanny
import tokenize
import tempfile
Expand Down Expand Up @@ -233,8 +235,8 @@ def test_when_nannynag_error(self):
def test_when_no_file(self):
"""A python file which does not exist actually in system."""
path = 'no_file.py'
err = f"{path!r}: I/O Error: [Errno {errno.ENOENT}] " \
f"No such file or directory: {path!r}\n"
err = (f"{path!r}: I/O Error: [Errno {errno.ENOENT}] "
f"{os.strerror(errno.ENOENT)}: {path!r}\n")
self.verify_tabnanny_check(path, err=err)

def test_errored_directory(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix test_tabnanny on VxWorks: adjust ENOENT error message.