From: Patrick Reader <_@pxeger.com> Date: Fri, 18 Feb 2022 01:45:35 +0000 (+0000) Subject: Fix mistake in barry_as_FLUFL test (GH-31392) X-Git-Tag: v3.11.0a6~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66;p=thirdparty%2FPython%2Fcpython.git Fix mistake in barry_as_FLUFL test (GH-31392) Use assertEqual(), not assertTrue(lineno, 2) --- diff --git a/Lib/test/test_flufl.py b/Lib/test/test_flufl.py index 0ff54aa227e3..a81a4d4c8f0e 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, '') - 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)