Skip to content

Commit

Permalink
Fix a base string usage that need to also take bytes into account
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed May 21, 2024
1 parent a530e29 commit 1dbcf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/_py/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class NeverRaised(Exception):

class Visitor:
def __init__(self, fil, rec, ignore, bf, sort):
if isinstance(fil, str):
if isinstance(fil, (str, bytes)):
fil = FNMatcher(fil)
if isinstance(rec, str):
self.rec: Callable[[LocalPath], bool] = FNMatcher(rec)
Expand Down

0 comments on commit 1dbcf8f

Please sign in to comment.