Skip to content

Commit 678750c

Browse files
committed
Fix importer call
1 parent abe8f5e commit 678750c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def _tryconvertpyarg(self, x):
687687
# This method is sometimes invoked when AssertionRewritingHook, which
688688
# does not define a get_filename method, is already in place:
689689
try:
690-
path = loader.get_filename()
690+
path = loader.get_filename(x)
691691
except AttributeError:
692692
# Retrieve path from AssertionRewritingHook:
693693
path = loader.modules[x][0].co_filename

0 commit comments

Comments
 (0)