From fd69aed3693d041b2a52669acd878e6050184254 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 18 Feb 2020 20:45:13 +0000 Subject: [PATCH] Remove dead code --- .../cibuildwheel_test.py | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/test/11_dependency_versions/cibuildwheel_test.py b/test/11_dependency_versions/cibuildwheel_test.py index 05f9e359..f4991da9 100644 --- a/test/11_dependency_versions/cibuildwheel_test.py +++ b/test/11_dependency_versions/cibuildwheel_test.py @@ -6,8 +6,6 @@ import cibuildwheel.util import utils -VERSION_REGEX = r'([\w-]+)==([^\s]+)' - def get_version_from_constraint_file(package_name, constraint_file): version_pattern = package_name + r'==([^\s]+)' @@ -23,27 +21,6 @@ def get_version_from_constraint_file(package_name, constraint_file): return match.group(1) -def get_versions_from_constraint_file(python2=False): - if python2: - constraint_filename = 'constraints-python27.txt' - else: - constraint_filename = 'constraints.txt' - - constraint_file = os.path.join(cibuildwheel.util.resources_dir, constraint_filename) - - with open(constraint_file, encoding='utf8') as f: - constraint_file_text = f.read() - - versions = {} - - for line in constraint_file_text.strip().splitlines(): - match = re.match(VERSION_REGEX, line) - if match: - versions[match.group(1)] = match.group(2) - - return versions - - @pytest.mark.parametrize('python_version', ['2.7', '3.x']) def test_pinned_versions(python_version): if utils.platform == 'linux':