summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2022-04-16 22:57:00 (GMT)
committerGitHub <noreply@github.com>2022-04-16 22:57:00 (GMT)
commit37965d2fb434d8343d5c70fb6a462a16ae7882b8 (patch)
tree40d37002d9414950e4b2d889e281438a121545c2 /Lib
parent8560f4a0f288fec33ba49f85bb872353d631a4dc (diff)
downloadcpython-37965d2fb434d8343d5c70fb6a462a16ae7882b8.zip
cpython-37965d2fb434d8343d5c70fb6a462a16ae7882b8.tar.gz
cpython-37965d2fb434d8343d5c70fb6a462a16ae7882b8.tar.bz2
gh-78607: Replace __ltrace__ with __lltrace__ (GH-91619)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_lltrace.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_lltrace.py b/Lib/test/test_lltrace.py
index 75b377b..63b65e4 100644
--- a/Lib/test/test_lltrace.py
+++ b/Lib/test/test_lltrace.py
@@ -48,9 +48,9 @@ class TestLLTrace(unittest.TestCase):
x = 42
y = -x
dont_trace_1()
- __ltrace__ = 1
+ __lltrace__ = 1
trace_me()
- del __ltrace__
+ del __lltrace__
dont_trace_2()
""")
self.assertIn("GET_ITER", stdout)
@@ -67,7 +67,7 @@ class TestLLTrace(unittest.TestCase):
def test_lltrace_different_module(self):
stdout = self.run_code("""
from test import test_lltrace
- test_lltrace.__ltrace__ = 1
+ test_lltrace.__lltrace__ = 1
test_lltrace.example()
""")
self.assertIn("'example' in module 'test.test_lltrace'", stdout)
@@ -95,13 +95,13 @@ class TestLLTrace(unittest.TestCase):
def test_lltrace_does_not_crash_on_subscript_operator(self):
# If this test fails, it will reproduce a crash reported as
# bpo-34113. The crash happened at the command line console of
- # debug Python builds with __ltrace__ enabled (only possible in console),
+ # debug Python builds with __lltrace__ enabled (only possible in console),
# when the internal Python stack was negatively adjusted
stdout = self.run_code("""
import code
console = code.InteractiveConsole()
- console.push('__ltrace__ = 1')
+ console.push('__lltrace__ = 1')
console.push('a = [1, 2, 3]')
console.push('a[0] = 1')
print('unreachable if bug exists')