Skip to content

Commit b4abb80

Browse files
committed
13403: Disable assertion rewriting for external modules
1 parent 44fa471 commit b4abb80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/assertion/rewrite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def _early_rewrite_bailout(self, name: str, state: AssertionState) -> bool:
216216
if fnmatch_ex(pat, path):
217217
return False
218218

219-
rootPath=os.getcwd()
220-
if not path.is_relative_to(rootPath):
219+
root_path=os.getcwd()
220+
if not path.is_relative_to(root_path):
221221
return True
222222

223223
if self._is_marked_for_rewrite(name, state):

0 commit comments

Comments
 (0)