Skip to content

Commit 4931858

Browse files
Fix a base string usage that need to also take bytes into account
1 parent 0b30c16 commit 4931858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/_py/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class NeverRaised(Exception):
137137

138138
class Visitor:
139139
def __init__(self, fil, rec, ignore, bf, sort):
140-
if isinstance(fil, str):
140+
if isinstance(fil, (str, bytes)):
141141
fil = FNMatcher(fil)
142142
if isinstance(rec, str):
143143
self.rec: Callable[[LocalPath], bool] = FNMatcher(rec)

0 commit comments

Comments
 (0)