Skip to content

Commit

Permalink
Remove unused test fixture (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed Dec 11, 2020
1 parent 7e47a46 commit 4b9b3f8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/test_tags.py
Expand Up @@ -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))
Expand Down Expand Up @@ -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"
)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4b9b3f8

Please sign in to comment.