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 6
6
from unittest import TestCase , mock
7
7
from unittest import mock
8
8
import errno
9
+ import os
10
+ import sys
9
11
import tabnanny
10
12
import tokenize
11
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."""
235
237
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 " )
238
240
self .verify_tabnanny_check (path , err = err )
239
241
240
242
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