Skip to content

Commit a5a6253

Browse files
committed
Fix __str__ method test on Windows.
1 parent 0a4e42d commit a5a6253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_str.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def test_str(self):
1010
filepath = "/Roboto_Mono/static/RobotoMono-Regular.ttf"
1111
font = self._get_font(filepath)
1212
s = str(font)
13-
self.assertTrue(s.startswith("Font('"))
14-
self.assertTrue(s.endswith(filepath + "')"))
13+
expected = f"Font('{font.filepath}')"
14+
self.assertEqual(s, expected)

0 commit comments

Comments
 (0)