From 74546d3405c2ed69f2ed9630ccaf6e0ac282cde9 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 5 Mar 2018 13:38:26 -0500 Subject: [PATCH] hack Signed-off-by: Kenneth Reitz --- tests/pytest-pypi/pytest_pypi/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pytest-pypi/pytest_pypi/app.py b/tests/pytest-pypi/pytest_pypi/app.py index efcbe23d..cabe1ba5 100644 --- a/tests/pytest-pypi/pytest_pypi/app.py +++ b/tests/pytest-pypi/pytest_pypi/app.py @@ -9,6 +9,9 @@ app = Flask(__name__) packages = {} +os.path.sep = '/' + + class Package(object): """docstring for Package""" @@ -68,7 +71,7 @@ def serve_package(package, release): for _release in package.releases: if _release.endswith(release): - return send_file(os.path.sep.join([PYPI_VENDOR_DIR, _release.replace('/', os.path.sep)])) + return send_file(os.path.sep.join([PYPI_VENDOR_DIR, _release])) abort(404)