Skip to content

Commit 970851d

Browse files
committed
Remove tests/alt-fixtures/twine-1.5.0-py2.py3-none-any.whl
This test file was added in 8b8790b (Add tests to ensure version parsing does not regress, part of #147) with the intent of testing the target Python version from wheel file names. However, the filename is identical to the one of the other text fixture tests/fixtures/twine-1.5.0-py2.py3-none-any.whl thus it does not appear to add any additional coverage to the code extracting the target Python version.
1 parent 2386ca5 commit 970851d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed
Binary file not shown.

tests/test_wheel.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
import os
1514
import pathlib
1615
import re
1716
import zipfile
@@ -22,17 +21,11 @@
2221
from twine import exceptions
2322
from twine import wheel
2423

25-
from . import helpers
2624

27-
28-
@pytest.fixture(
29-
params=[
30-
"fixtures/twine-1.5.0-py2.py3-none-any.whl",
31-
"alt-fixtures/twine-1.5.0-py2.py3-none-any.whl",
32-
]
33-
)
25+
@pytest.fixture()
3426
def example_wheel(request):
35-
file_name = os.path.join(helpers.TESTS_DIR, request.param)
27+
parent = pathlib.Path(__file__).parent
28+
file_name = str(parent / "fixtures" / "twine-1.5.0-py2.py3-none-any.whl")
3629
return wheel.Wheel(file_name)
3730

3831

0 commit comments

Comments
 (0)