From dbbc5ce33bc13a0e961b57ed90a6f17620a790e3 Mon Sep 17 00:00:00 2001 From: a <1@1.1> Date: Fri, 9 Aug 2024 14:21:56 +0200 Subject: [PATCH] test --- tests/test_integrations.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_integrations.py b/tests/test_integrations.py index b453a131a..915a82d59 100644 --- a/tests/test_integrations.py +++ b/tests/test_integrations.py @@ -1523,9 +1523,14 @@ def _e(a,i,o,e): print("O", file=o) print("E", file=e) +import tempfile for i in range(0, 12): - echo -n o + echo -n e print($(e), !(e), $[e], ![e]) + print($(e > @(tempfile.NamedTemporaryFile(delete=False).name))) + print(!(e > @(tempfile.NamedTemporaryFile(delete=False).name))) + print($[e > @(tempfile.NamedTemporaryFile(delete=False).name)]) + print(![e > @(tempfile.NamedTemporaryFile(delete=False).name)]) """ ] @@ -1533,7 +1538,7 @@ for i in range(0, 12): @skip_if_on_windows @pytest.mark.parametrize("test_code", test_code) def test_callable_alias_no_bad_file_descriptor(test_code): - """Test for #5631: no exceptions during any kind of capturing of callable alias.""" + """Test no exceptions during any kind of capturing of callable alias. See also #5631.""" out, err, ret = run_xonsh( test_code, interactive=True, single_command=True, timeout=60