def test_generic_interpreter_no_config_var(monkeypatch): monkeypatch.setattr(sysconfig, "get_config_var", lambda _: None) assert tags._generic_interpreter("sillywalk", (3, 6)) == "sillywalk36"
def test_generic_interpreter_no_config_var(monkeypatch): monkeypatch.setattr(sysconfig, "get_config_var", lambda _: None) assert tags._generic_interpreter("sillywalk", (3, 6)) == "sillywalk36"
def test_generic_interpreter(): version = sysconfig.get_config_var("py_version_nodot") if not version: version = "".join(sys.version_info[:2]) result = tags._generic_interpreter("sillywalk", sys.version_info[:2]) assert result == "sillywalk{version}".format(version=version)
def test_generic_interpreter(): version = sysconfig.get_config_var("py_version_nodot") if not version: version = "".join(sys.version_info[:2]) result = tags._generic_interpreter("sillywalk", sys.version_info[:2]) assert result == "sillywalk{version}".format(version=version)