From 4b9b3f8edaf1feba2bc84ac12172f7d4af47e277 Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Fri, 11 Dec 2020 13:54:44 -0600 Subject: [PATCH] Remove unused test fixture (#373) --- tests/test_tags.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/test_tags.py b/tests/test_tags.py index b4df1c76..48d30f58 100644 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -32,11 +32,6 @@ def example_tag(): return tags.Tag("py3", "none", "any") -@pytest.fixture -def is_x86(): - return re.match(r"(i\d86|x86_64)", platform.machine()) is not None - - @pytest.fixture def manylinux_module(monkeypatch): monkeypatch.setattr(tags, "_get_glibc_version", lambda *args: (2, 20)) @@ -503,7 +498,7 @@ def test_linux_platforms_manylinux_unsupported(self, monkeypatch): linux_platform = list(tags._linux_platforms(is_32bit=False)) assert linux_platform == ["linux_x86_64"] - def test_linux_platforms_manylinux1(self, is_x86, monkeypatch): + def test_linux_platforms_manylinux1(self, monkeypatch): monkeypatch.setattr( tags, "_is_manylinux_compatible", lambda name, *args: name == "manylinux1" ) @@ -514,7 +509,7 @@ def test_linux_platforms_manylinux1(self, is_x86, monkeypatch): arch = platform.machine() assert platforms == ["manylinux1_" + arch, "linux_" + arch] - def test_linux_platforms_manylinux2010(self, is_x86, monkeypatch): + def test_linux_platforms_manylinux2010(self, monkeypatch): monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64") monkeypatch.setattr(platform, "machine", lambda: "x86_64") monkeypatch.setattr(os, "confstr", lambda x: "glibc 2.12", raising=False) @@ -535,7 +530,7 @@ def test_linux_platforms_manylinux2010(self, is_x86, monkeypatch): ] assert platforms == expected - def test_linux_platforms_manylinux2014(self, is_x86, monkeypatch): + def test_linux_platforms_manylinux2014(self, monkeypatch): monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64") monkeypatch.setattr(platform, "machine", lambda: "x86_64") monkeypatch.setattr(os, "confstr", lambda x: "glibc 2.17", raising=False)