diff options
author | Patrick Reader <_@pxeger.com> | 2022-02-18 01:45:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 01:45:35 (GMT) |
commit | 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66 (patch) | |
tree | 74930f7856c5f3ea344f7ec43611e4eb89f40d66 /Lib/test/test_flufl.py | |
parent | 35f55cc5c690a97853f1b544aac53574ab755b54 (diff) | |
download | cpython-5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66.zip cpython-5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66.tar.gz cpython-5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66.tar.bz2 |
Fix mistake in barry_as_FLUFL test (GH-31392)
Use assertEqual(), not assertTrue(lineno, 2)
Diffstat (limited to 'Lib/test/test_flufl.py')
-rw-r--r-- | Lib/test/test_flufl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_flufl.py b/Lib/test/test_flufl.py index 0ff54aa..a81a4d4 100644 --- a/Lib/test/test_flufl.py +++ b/Lib/test/test_flufl.py @@ -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) |