Fix mistake in barry_as_FLUFL test (GH-31392)

Use assertEqual(), not assertTrue(lineno, 2)
This commit is contained in:
Patrick Reader 2022-02-18 01:45:35 +00:00 committed by GitHub
parent 35f55cc5c6
commit 5f1c205dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class FLUFLTests(unittest.TestCase):
self.assertIn('2 != 3', cm.exception.text)
self.assertEqual(cm.exception.filename, '<FLUFL test>')
self.assertTrue(cm.exception.lineno, 2)
self.assertEqual(cm.exception.lineno, 2)
# The old parser reports the end of the token and the new
# parser reports the start of the token
self.assertEqual(cm.exception.offset, 3)