summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_util.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2025-01-21 09:24:19 (GMT)
committerGitHub <noreply@github.com>2025-01-21 09:24:19 (GMT)
commitf7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3 (patch)
tree2e06ecfe304200243f327747d528c5bbbd7b7f2d /Lib/test/test_importlib/test_util.py
parentda310d209a6af45e5e1ea48a873f1d14be471a09 (diff)
downloadcpython-f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3.zip
cpython-f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3.tar.gz
cpython-f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3.tar.bz2
gh-71339: Use new assertion methods in test_import and test_importlib (GH-129052)
Diffstat (limited to 'Lib/test/test_importlib/test_util.py')
-rw-r--r--Lib/test/test_importlib/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_util.py b/Lib/test/test_importlib/test_util.py
index 0bdd1b4..6332548 100644
--- a/Lib/test/test_importlib/test_util.py
+++ b/Lib/test/test_importlib/test_util.py
@@ -321,7 +321,7 @@ class MagicNumberTests:
def test_incorporates_rn(self):
# The magic number uses \r\n to come out wrong when splitting on lines.
- self.assertTrue(self.util.MAGIC_NUMBER.endswith(b'\r\n'))
+ self.assertEndsWith(self.util.MAGIC_NUMBER, b'\r\n')
(Frozen_MagicNumberTests,