File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ def test_read_write_arcs(self):
584
584
assert_arcs3_data (covdata2 )
585
585
586
586
def test_read_errors (self ):
587
- msg = r"Couldn't .* '.*[/\\]{0 }': \S+"
587
+ msg = r"Couldn't .* '.*[/\\]{}': \S+"
588
588
589
589
self .make_file ("xyzzy.dat" , "xyzzy" )
590
590
with pytest .raises (CoverageException , match = msg .format ("xyzzy.dat" )):
@@ -602,15 +602,15 @@ def test_read_sql_errors(self):
602
602
with sqlite3 .connect ("wrong_schema.db" ) as con :
603
603
con .execute ("create table coverage_schema (version integer)" )
604
604
con .execute ("insert into coverage_schema (version) values (99)" )
605
- msg = r"Couldn't .* '.*[/\\]{} ': wrong schema: 99 instead of \d+" . format ( "wrong_schema.db" )
605
+ msg = r"Couldn't .* '.*[/\\]wrong_schema.db ': wrong schema: 99 instead of \d+"
606
606
with pytest .raises (CoverageException , match = msg ):
607
607
covdata = DebugCoverageData ("wrong_schema.db" )
608
608
covdata .read ()
609
609
assert not covdata
610
610
611
611
with sqlite3 .connect ("no_schema.db" ) as con :
612
612
con .execute ("create table foobar (baz text)" )
613
- msg = r"Couldn't .* '.*[/\\]{} ': \S+" . format ( "no_schema.db" )
613
+ msg = r"Couldn't .* '.*[/\\]no_schema.db ': \S+"
614
614
with pytest .raises (CoverageException , match = msg ):
615
615
covdata = DebugCoverageData ("no_schema.db" )
616
616
covdata .read ()
Original file line number Diff line number Diff line change @@ -1654,9 +1654,9 @@ def run_in_venv(cmd):
1654
1654
"""
1655
1655
words = cmd .split ()
1656
1656
if env .WINDOWS :
1657
- words [0 ] = r"{} \Scripts\{}.exe" . format ( "venv" , words [0 ])
1657
+ words [0 ] = fr"venv \Scripts\{ words [0 ]} .exe"
1658
1658
else :
1659
- words [0 ] = "{} /bin/{}" . format ( "venv" , words [0 ])
1659
+ words [0 ] = fr"venv /bin/{ words [0 ]} "
1660
1660
status , output = run_command (" " .join (words ))
1661
1661
assert status == 0
1662
1662
return output
You can’t perform that action at this time.
0 commit comments