File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ def test_report_no_extension(self):
575
575
d = 7
576
576
print("xxx: %r %r %r %r" % (a, b, c, d))
577
577
""" )
578
- out = self .run_command ("coverage run xxx" )
578
+ out = self .run_command ("coverage run --source=. xxx" )
579
579
self .assertEqual (out , "xxx: 3 4 0 7\n " )
580
580
report = self .report_from_command ("coverage report" )
581
581
self .assertEqual (self .last_line_squeezed (report ), "xxx 7 1 86%" )
@@ -589,7 +589,7 @@ def test_report_with_chdir(self):
589
589
print(open("something").read())
590
590
""" )
591
591
self .make_file ("subdir/something" , "hello" )
592
- out = self .run_command ("coverage run chdir.py" )
592
+ out = self .run_command ("coverage run --source=. chdir.py" )
593
593
self .assertEqual (out , "Line One\n Line Two\n hello\n " )
594
594
report = self .report_from_command ("coverage report" )
595
595
self .assertEqual (self .last_line_squeezed (report ), "chdir.py 5 0 100%" )
You can’t perform that action at this time.
0 commit comments