Answer stability round 2: 0 🔴, 1 🟡; drop the two tests that asserted a misparse of process substitution
This commit is contained in:
@@ -85,10 +85,9 @@ class Commits(unittest.TestCase):
|
||||
|
||||
def test_a_separator_glued_to_a_redirect_still_ends_the_command(self):
|
||||
self.assertEqual(segments("echo a > f; echo b | cat &> g\nls"), [["echo", "a"], ["echo", "b"], ["cat"], ["ls"]])
|
||||
for command in ["echo a &</dev/null git commit -m hi", "echo a;>f git commit -m hi", "tee >(true) git commit -m hi"]:
|
||||
for command in ["echo a &</dev/null git commit -m hi", "echo a;>f git commit -m hi"]:
|
||||
with self.subTest(command):
|
||||
self.assertEqual(committed(command), [Commit("/r", ["hi"], False)])
|
||||
self.assertEqual(segments("diff <(a) b"), [["diff"], ["b"]])
|
||||
|
||||
|
||||
class CommandBreaches(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user