File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -542,6 +542,9 @@ def test_foo(data):
542
542
res = pytester .runpytest (p )
543
543
res .assert_outcomes (passed = 3 )
544
544
545
+ # Warning ignore because of:
546
+ # https://github.com/python/cpython/issues/85308
547
+ # Can be removed once Python<3.12 support is dropped.
545
548
@pytest .mark .filterwarnings ("ignore:'encoding' argument not specified" )
546
549
def test_command_line_args_from_file (
547
550
self , pytester : Pytester , tmp_path : Path
@@ -559,9 +562,10 @@ def test_func(self, a):
559
562
tests = [
560
563
"test_file.py::TestClass::test_func[x]" ,
561
564
"test_file.py::TestClass::test_func[y]" ,
565
+ "-q" ,
562
566
]
563
567
args_file = pytester .maketxtfile (tests = "\n " .join (tests ))
564
- result = pytester .runpytest (f"@{ args_file . absolute () } " )
568
+ result = pytester .runpytest (f"@{ args_file } " )
565
569
result .assert_outcomes (failed = 0 , passed = 2 )
566
570
567
571
You can’t perform that action at this time.
0 commit comments