diff --git a/tests/test_inference.py b/tests/test_inference.py index 97bb1e1495..b6ce936203 100644 --- a/tests/test_inference.py +++ b/tests/test_inference.py @@ -7205,3 +7205,18 @@ def test_old_style_string_formatting_with_specs(self) -> None: inferred = next(node.infer()) assert isinstance(inferred, nodes.Const) assert inferred.value == "My name is Daniel, I'm 12.00" + + +def test_sys_argv_uninferable() -> None: + """Regression test for https://github.com/pylint-dev/pylint/issues/7710.""" + a: nodes.List = extract_node( + textwrap.dedent( + """ + import sys + + sys.argv""" + ) + ) + sys_argv_value = list(a._infer()) + assert len(sys_argv_value) == 1 + assert sys_argv_value[0] is Uninferable