mirror of https://github.com/python/cpython
Fix mistake in barry_as_FLUFL test (GH-31392)
Use assertEqual(), not assertTrue(lineno, 2)
This commit is contained in:
parent
35f55cc5c6
commit
5f1c205dce
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue