File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -385,13 +385,16 @@ def tearDown(self):
385
385
unlink (self .coverfile )
386
386
387
387
def test_cover_files_written_no_highlight (self ):
388
+ # Test also that the cover file for the trace module is not created
389
+ # (issue #34171).
390
+ tracedir = os .path .dirname (os .path .abspath (trace .__file__ ))
391
+ tracecoverpath = os .path .join (tracedir , 'trace.cover' )
392
+ unlink (tracecoverpath )
393
+
388
394
argv = '-m trace --count' .split () + [self .codefile ]
389
395
status , stdout , stderr = assert_python_ok (* argv )
390
396
self .assertEqual (stderr , b'' )
391
- tracedir = os .path .dirname (os .path .abspath (trace .__file__ ))
392
- tracecoverpath = os .path .join (tracedir , "trace.cover" )
393
397
self .assertFalse (os .path .exists (tracecoverpath ))
394
-
395
398
self .assertTrue (os .path .exists (self .coverfile ))
396
399
with open (self .coverfile ) as f :
397
400
self .assertEqual (f .read (),
You can’t perform that action at this time.
0 commit comments