Fix incorrect use of re function in tests (#12213)

This commit is contained in:
Shantanu 2023-08-08 05:37:38 -07:00 committed by GitHub
parent 901db9cf8d
commit d8cd93f4fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ def create_basic_wheel_for_package(
# Fix wheel distribution name by replacing runs of non-alphanumeric
# characters with an underscore _ as per PEP 491
name = re.sub(r"[^\w\d.]+", "_", name, re.UNICODE)
name = re.sub(r"[^\w\d.]+", "_", name)
archive_name = f"{name}-{version}-py2.py3-none-any.whl"
archive_path = script.scratch_path / archive_name