We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163866c commit 87f5942Copy full SHA for 87f5942
testing/test_argparsing_repr_fix.py
@@ -1,12 +1,12 @@
1
"""
2
Test case for issue #13817: AttributeError with invalid flag in pytest_addoption
3
4
-from __future__ import annotations
5
6
-import pytest
+from __future__ import annotations
7
8
from _pytest.config.argparsing import ArgumentError
9
from _pytest.config.argparsing import Parser
+import pytest
10
11
12
# Suppress warning about using private pytest API (we're testing pytest itself)
@@ -51,4 +51,4 @@ def test_valid_option_works(self) -> None:
51
52
options = parser._anonymous.options
53
assert len(options) > 0
54
- assert "--shuffle" in options[0].names()
+ assert "--shuffle" in options[0].names()
0 commit comments