aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/idle_test/test_grep.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2025-01-23 13:25:14 -0500
committerGitHub <noreply@github.com>2025-01-23 13:25:14 -0500
commitdbb25ce037a8eddc85a9f6ba541aec8b3fa931fa (patch)
tree3dcf1bf465cc5b97e90fdffa63c19e89f8cb7d39 /Lib/idlelib/idle_test/test_grep.py
parentc05a851ac59e6fb7bd433677b9c116fb8336a8b1 (diff)
downloadcpython-dbb25ce037a8eddc85a9f6ba541aec8b3fa931fa.tar.gz
cpython-dbb25ce037a8eddc85a9f6ba541aec8b3fa931fa.zip
gh-71339: Use new assertion methods in test_idle (#129213)
Revise 10 tests in 7 files, with 1 test split into 2.
Diffstat (limited to 'Lib/idlelib/idle_test/test_grep.py')
-rw-r--r--Lib/idlelib/idle_test/test_grep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_grep.py b/Lib/idlelib/idle_test/test_grep.py
index a0b5b691718..d67dba76911 100644
--- a/Lib/idlelib/idle_test/test_grep.py
+++ b/Lib/idlelib/idle_test/test_grep.py
@@ -143,7 +143,7 @@ class Grep_itTest(unittest.TestCase):
self.assertIn(pat, lines[0])
self.assertIn('py: 1:', lines[1]) # line number 1
self.assertIn('2', lines[3]) # hits found 2
- self.assertTrue(lines[4].startswith('(Hint:'))
+ self.assertStartsWith(lines[4], '(Hint:')
class Default_commandTest(unittest.TestCase):