Skip to content

Commit c11f41b

Browse files
Fix mistake in barry_as_FLUFL test (GH-31392)
Use assertEqual(), not assertTrue(lineno, 2) (cherry picked from commit 5f1c205) Co-authored-by: Patrick Reader <[email protected]>
1 parent e782890 commit c11f41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_flufl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_barry_as_bdfl(self):
1717
self.assertIn('2 != 3', cm.exception.text)
1818
self.assertEqual(cm.exception.filename, '<FLUFL test>')
1919

20-
self.assertTrue(cm.exception.lineno, 2)
20+
self.assertEqual(cm.exception.lineno, 2)
2121
# The old parser reports the end of the token and the new
2222
# parser reports the start of the token
2323
self.assertEqual(cm.exception.offset, 4 if support.use_old_parser() else 3)

0 commit comments

Comments
 (0)