Skip to content

Commit 8c43772

Browse files
committed
Update test to check for NOT_SET constant
1 parent bce848b commit 8c43772

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_argparsing_repr_fix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from _pytest.config.argparsing import ArgumentError
6+
from _pytest.config.argparsing import NOT_SET
67
from _pytest.config.argparsing import Parser
78
import pytest
89

@@ -62,4 +63,4 @@ def test_repr_with_dest_set(self) -> None:
6263

6364
# Should contain the dest
6465
assert "dest: 'valid_dest'" in repr_str
65-
assert "<not set>" not in repr_str
66+
assert "NOT_SET" not in repr_str

0 commit comments

Comments
 (0)