summaryrefslogtreecommitdiff
path: root/runcmd.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-08-20 12:25:38 +0300
committerLars Wirzenius <liw@liw.fi>2020-08-20 12:25:38 +0300
commitb4aa3ed8a3ce591fe7518af1f07de9c63d85428b (patch)
tree56d9ab80a611f1cc68cb7c8244054cba8d474481 /runcmd.py
parent69d90b0b5ae8e25d084ea88b150dab040f835436 (diff)
downloadsubplot-b4aa3ed8a3ce591fe7518af1f07de9c63d85428b.tar.gz
fix: drop duplicate and wrong definition of exit_code_is_not
Diffstat (limited to 'runcmd.py')
-rw-r--r--runcmd.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/runcmd.py b/runcmd.py
index b67c6bb..7193c15 100644
--- a/runcmd.py
+++ b/runcmd.py
@@ -22,13 +22,6 @@ def exit_code_is(ctx, wanted):
# Check that latest exit code captured by runcmd was not a specific one.
def exit_code_is_not(ctx, unwanted):
- if ctx.get("exit") == wanted:
- print("context:", ctx.as_dict())
- assert_ne(ctx.get("exit"), wanted)
-
-
-# Check that latest exit code captured by runcmd was not a specific one.
-def exit_code_is_not(ctx, unwanted):
if ctx.get("exit") == unwanted:
print("context:", ctx.as_dict())
assert_ne(ctx.get("exit"), unwanted)