Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad1154 commit 47b91b0Copy full SHA for 47b91b0
1 file changed
Lib/test/bytecode_helper.py
@@ -32,8 +32,8 @@ def assertNotInBytecode(self, x, opname, argval=_UNSPECIFIED):
32
"""Throws AssertionError if op is found"""
33
for instr in dis.get_instructions(x):
34
if instr.opname == opname:
35
- disassembly = self.get_disassembly_as_string(co)
36
- if opargval is _UNSPECIFIED:
+ disassembly = self.get_disassembly_as_string(x)
+ if argval is _UNSPECIFIED:
37
msg = '%s occurs in bytecode:\n%s' % (opname, disassembly)
38
elif instr.argval == argval:
39
msg = '(%s,%r) occurs in bytecode:\n%s'
0 commit comments