Skip to content

Commit

Permalink
Fix incorrect use of re function in tests (pypa#12213)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored and cosmicexplorer committed Aug 9, 2023
1 parent 834a887 commit 96f22c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file.
2 changes: 1 addition & 1 deletion tests/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 96f22c8

Please sign in to comment.