mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Fix mistake in barry_as_FLUFL test (GH-31392)
Use assertEqual(), not assertTrue(lineno, 2)
This commit is contained in:
parent
35f55cc5c6
commit
5f1c205dce
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class FLUFLTests(unittest.TestCase):
|
||||||
self.assertIn('2 != 3', cm.exception.text)
|
self.assertIn('2 != 3', cm.exception.text)
|
||||||
self.assertEqual(cm.exception.filename, '<FLUFL test>')
|
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
|
# The old parser reports the end of the token and the new
|
||||||
# parser reports the start of the token
|
# parser reports the start of the token
|
||||||
self.assertEqual(cm.exception.offset, 3)
|
self.assertEqual(cm.exception.offset, 3)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue