From 4c5ea87df12e89863db8e8c1872632ef32113006 Mon Sep 17 00:00:00 2001 From: Roman Lozko Date: Tue, 31 Oct 2023 20:51:27 +0000 Subject: [PATCH] fix --- tests/test_local.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_local.py b/tests/test_local.py index 3a11e8fa..38e26bde 100644 --- a/tests/test_local.py +++ b/tests/test_local.py @@ -607,7 +607,7 @@ def test_iter_lines_line_timeout(self): @skip_on_windows def test_modifiers(self): - from plumbum.cmd import grep, ls + from plumbum.cmd import cat, grep, ls f = (ls["-a"] | grep["\\.py"]) & BG f.wait() @@ -615,13 +615,17 @@ def test_modifiers(self): command = ls["-a"] | grep["local"] command_false = ls["-a"] | grep["not_a_file_here"] + command_false_2 = command_false | cat command & FG assert command & TF assert not (command_false & TF) + assert not (command_false_2 & TF) assert command & RETCODE == 0 assert command_false & RETCODE == 1 + assert command_false_2 & RETCODE == 1 assert (command & TEE)[0] == 0 assert (command_false & TEE(retcode=None))[0] == 1 + assert (command_false_2 & TEE(retcode=None))[0] == 1 @skip_on_windows def test_tee_modifier(self, capfd):