Skip to content

Commit

Permalink
Merge branch 'main' into unmask-sig
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyu-ms authored Oct 25, 2024
2 parents 757d3d2 + 0c61520 commit c9ca835
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testplan/common/utils/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ def _prepare_regexp(self, regexp: Regex) -> Pattern[AnyStr]:

if isinstance(regexp, (str, bytes)):
regexp = re.compile(regexp)
else:
try:
import rpyc

if isinstance(regexp, rpyc.core.netref.BaseNetref):
regexp = re.compile(regexp.pattern, regexp.flags)
except ImportError:
pass

try:
if self.binary and isinstance(regexp.pattern, str):
raise TypeError(
Expand Down

0 comments on commit c9ca835

Please sign in to comment.