Skip to content

Commit

Permalink
Fix f-strings
Browse files Browse the repository at this point in the history
This patch fixes a few f-strings which were marked incorrectly so that
the placeholder would never be replaced.
  • Loading branch information
lkiesow committed Jun 6, 2021
1 parent 0bb156a commit d820cc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ def testInvalidPolygons(self):
for invalid_polygon in invalid_polygons:
sys.argv = [sys.argv[0], '--polygon', invalid_polygon, '.']

error_msg = f'Expecting SystemExit error when providing the '\
'invalid polygon "{invalid_polygon}"'
error_msg = 'Expecting SystemExit error when providing the '\
f'invalid polygon "{invalid_polygon}"'
with self.assertRaises(SystemExit, msg=error_msg) as e:
executable.main()

error_msg = f'Expecting return code != 0 error when providing '\
'the invalid polygon "{invalid_polygon}"'
error_msg = 'Expecting return code != 0 error when providing '\
f'the invalid polygon "{invalid_polygon}"'
self.assertNotEqual(e.exception.code, 0, msg=error_msg)


Expand Down

0 comments on commit d820cc8

Please sign in to comment.