summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_flufl.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-02-18 02:11:34 (GMT)
committerGitHub <noreply@github.com>2022-02-18 02:11:34 (GMT)
commit095ffe715e341690fd047917d83bebe0359c9d80 (patch)
tree48bbfb7e52dcd485d77bd0f2d4603c4318b86c7f /Lib/test/test_flufl.py
parentcb7551d5663f35c6993f3c6d8e361bc73f1c43d4 (diff)
downloadcpython-095ffe715e341690fd047917d83bebe0359c9d80.zip
cpython-095ffe715e341690fd047917d83bebe0359c9d80.tar.gz
cpython-095ffe715e341690fd047917d83bebe0359c9d80.tar.bz2
Fix mistake in barry_as_FLUFL test (GH-31392)
Use assertEqual(), not assertTrue(lineno, 2) (cherry picked from commit 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66) Co-authored-by: Patrick Reader <_@pxeger.com>
Diffstat (limited to 'Lib/test/test_flufl.py')
-rw-r--r--Lib/test/test_flufl.py2
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)