Skip to content

Commit c0c810c

Browse files
committed
Update testing/acceptance_test.py
1 parent c56a962 commit c0c810c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testing/acceptance_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ def test_foo(data):
542542
res = pytester.runpytest(p)
543543
res.assert_outcomes(passed=3)
544544

545+
# Warning ignore because of:
546+
# https://github.com/python/cpython/issues/85308
547+
# Can be removed once Python<3.12 support is dropped.
545548
@pytest.mark.filterwarnings("ignore:'encoding' argument not specified")
546549
def test_command_line_args_from_file(
547550
self, pytester: Pytester, tmp_path: Path
@@ -559,9 +562,10 @@ def test_func(self, a):
559562
tests = [
560563
"test_file.py::TestClass::test_func[x]",
561564
"test_file.py::TestClass::test_func[y]",
565+
"-q",
562566
]
563567
args_file = pytester.maketxtfile(tests="\n".join(tests))
564-
result = pytester.runpytest(f"@{args_file.absolute()}")
568+
result = pytester.runpytest(f"@{args_file}")
565569
result.assert_outcomes(failed=0, passed=2)
566570

567571

0 commit comments

Comments
 (0)