Fix typos in comments and test code (#122846)

This commit is contained in:
Xie Yanbo 2024-08-12 12:16:41 +08:00 committed by GitHub
parent 9375b9ca3a
commit 253c6a0b2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 28 additions and 28 deletions

View file

@ -405,7 +405,7 @@ class ImportTests(unittest.TestCase):
def test_double_const(self):
# Importing double_const checks that float constants
# serialiazed by marshal as PYC files don't lose precision
# serialized by marshal as PYC files don't lose precision
# (SF bug 422177).
from test.test_import.data import double_const
unload('test.test_import.data.double_const')
@ -2926,7 +2926,7 @@ class SinglephaseInitTests(unittest.TestCase):
# * alive in 1 interpreter (main)
# * module def still in _PyRuntime.imports.extensions
# * mod init func ran again
# * m_copy is NULL (claered when the interpreter was destroyed)
# * m_copy is NULL (cleared when the interpreter was destroyed)
# (was from main interpreter)
# * module's global state was updated, not reset
@ -3061,7 +3061,7 @@ class SinglephaseInitTests(unittest.TestCase):
# * alive in 0 interpreters
# * module def in _PyRuntime.imports.extensions
# * mod init func ran for the first time (since reset, at least)
# * m_copy is NULL (claered when the interpreter was destroyed)
# * m_copy is NULL (cleared when the interpreter was destroyed)
# * module's global state was initialized, not reset
# Use a subinterpreter that sticks around.