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):
385385 unlink (self .coverfile )
386386
387387 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+
388394 argv = '-m trace --count' .split () + [self .codefile ]
389395 status , stdout , stderr = assert_python_ok (* argv )
390396 self .assertEqual (stderr , b'' )
391- tracedir = os .path .dirname (os .path .abspath (trace .__file__ ))
392- tracecoverpath = os .path .join (tracedir , "trace.cover" )
393397 self .assertFalse (os .path .exists (tracecoverpath ))
394-
395398 self .assertTrue (os .path .exists (self .coverfile ))
396399 with open (self .coverfile ) as f :
397400 self .assertEqual (f .read (),
You can’t perform that action at this time.
0 commit comments