mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix typos in comments and test code (#122846)
This commit is contained in:
parent
9375b9ca3a
commit
253c6a0b2f
18 changed files with 28 additions and 28 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue