Merge remote-tracking branch 'upstream/master' into mm

Conflicts:
	src/_pytest/main.py
	src/_pytest/mark/structures.py
	src/_pytest/python.py
	testing/test_main.py
	testing/test_parseopt.py
This commit is contained in:
Bruno Oliveira
2020-02-11 10:32:18 -03:00
committed by Bruno Oliveira
31 changed files with 161 additions and 138 deletions

View File

@@ -72,6 +72,8 @@ class Code:
""" return a path object pointing to source code (or a str in case
of OSError / non-existing file).
"""
if not self.raw.co_filename:
return ""
try:
p = py.path.local(self.raw.co_filename)
# maybe don't try this checking