File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 66from unittest import TestCase , mock
77from unittest import mock
88import errno
9+ import os
10+ import sys
911import tabnanny
1012import tokenize
1113import tempfile
@@ -233,8 +235,8 @@ def test_when_nannynag_error(self):
233235 def test_when_no_file (self ):
234236 """A python file which does not exist actually in system."""
235237 path = 'no_file.py'
236- err = f"{ path !r} : I/O Error: [Errno { errno .ENOENT } ] " \
237- 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 " )
238240 self .verify_tabnanny_check (path , err = err )
239241
240242 def test_errored_directory (self ):
Original file line number Diff line number Diff line change 1+ Fix test_tabnanny on VxWorks: adjust ENOENT error message.
You can’t perform that action at this time.
0 commit comments