aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_int.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_int.py')
-rw-r--r--Lib/test/test_int.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py
index 245528ce57a..7a7cb73f673 100644
--- a/Lib/test/test_int.py
+++ b/Lib/test/test_int.py
@@ -836,7 +836,7 @@ class PyLongModuleTests(unittest.TestCase):
n = hibit | getrandbits(bits - 1)
assert n.bit_length() == bits
sn = str(n)
- self.assertFalse(sn.startswith('0'))
+ self.assertNotStartsWith(sn, '0')
self.assertEqual(n, int(sn))
bits <<= 1