summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorMax Bernstein <tekknolagi@users.noreply.github.com>2020-12-18 00:30:29 (GMT)
committerGitHub <noreply@github.com>2020-12-18 00:30:29 (GMT)
commit6e799be0a18d0bb5bbbdc77cd3c30a229d31dfb4 (patch)
tree8b341e9f638bbb94f5ffd1ab8d721bdfbe6c5329 /Lib/test/support
parent074ad5123f18923bdb5fa0b6e4bf24de45e32ba9 (diff)
downloadcpython-6e799be0a18d0bb5bbbdc77cd3c30a229d31dfb4.zip
cpython-6e799be0a18d0bb5bbbdc77cd3c30a229d31dfb4.tar.gz
cpython-6e799be0a18d0bb5bbbdc77cd3c30a229d31dfb4.tar.bz2
bpo-42199: Fix bytecode_helper assertNotInBytecode (#23031)
* bpo-42199: Fix bytecode_helper assertNotInBytecode Add tests. * 📜🤖 Added by blurb_it. Co-authored-by: Dino Viehland <dinoviehland@fb.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/bytecode_helper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support/bytecode_helper.py b/Lib/test/support/bytecode_helper.py
index 348e277..471d4a6 100644
--- a/Lib/test/support/bytecode_helper.py
+++ b/Lib/test/support/bytecode_helper.py
@@ -35,7 +35,8 @@ class BytecodeTestCase(unittest.TestCase):
disassembly = self.get_disassembly_as_string(x)
if argval is _UNSPECIFIED:
msg = '%s occurs in bytecode:\n%s' % (opname, disassembly)
+ self.fail(msg)
elif instr.argval == argval:
msg = '(%s,%r) occurs in bytecode:\n%s'
msg = msg % (opname, argval, disassembly)
- self.fail(msg)
+ self.fail(msg)