fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
896
test_issue2369_collect_module_fileext
def
function
def test_issue2369_collect_module_fileext(self, pytester: Pytester) -> None: """Ensure we can collect files with weird file extensions as Python modules (#2369)""" # We'll implement a little finder and loader to import files containing # Python source code whose file extension is ".n...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
901
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
919
makefile
ref
function
pytester.makefile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
926
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
927
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
929
test_early_ignored_attributes
def
function
def test_early_ignored_attributes(self, pytester: Pytester) -> None: """Builtin attributes should be ignored early on, even if configuration would otherwise allow them. This tests a performance optimization, not correctness, really, although it tests PytestCollectionWarning is not r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
937
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
944
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
953
inline_genitems
ref
function
items, rec = pytester.inline_genitems()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
958
test_setup_only_available_in_subdir
def
function
def test_setup_only_available_in_subdir(pytester: Pytester) -> None: sub1 = pytester.mkpydir("sub1") sub2 = pytester.mkpydir("sub2") sub1.joinpath("conftest.py").write_text( textwrap.dedent( """\ import pytest def pytest_runtest_setup(item): assert...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
959
mkpydir
ref
function
sub1 = pytester.mkpydir("sub1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
960
mkpydir
ref
function
sub2 = pytester.mkpydir("sub2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
961
joinpath
ref
function
sub1.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
961
write_text
ref
function
sub1.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
974
joinpath
ref
function
sub2.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
974
write_text
ref
function
sub2.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
987
joinpath
ref
function
sub1.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
987
write_text
ref
function
sub1.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
988
joinpath
ref
function
sub2.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
988
write_text
ref
function
sub2.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
989
runpytest
ref
function
result = pytester.runpytest("-v", "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
990
assert_outcomes
ref
function
result.assert_outcomes(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
993
test_modulecol_roundtrip
def
function
def test_modulecol_roundtrip(pytester: Pytester) -> None: modcol = pytester.getmodulecol("pass", withinit=_False) trail = modcol.nodeid newcol = modcol.session.perform_collect([trail], genitems=0)[0] assert modcol.name == newcol.name
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
994
getmodulecol
ref
function
modcol = pytester.getmodulecol("pass", withinit=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
996
perform_collect
ref
function
newcol = modcol.session.perform_collect([trail], genitems=0)[0]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,000
TestTracebackCutting
def
class
test_skip_simple test_traceback_argsetup test_traceback_error_during_import test_traceback_filter_error_during_fixture_collection test_filter_traceback_generated_code test_filter_traceback_path_no_longer_valid
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,001
test_skip_simple
def
function
def test_skip_simple(self): with pytest.raises(pytest.skip.Exception) as excinfo: pytest.skip("xxx") assert excinfo.traceback[-1].frame.code.name == "skip" assert excinfo.traceback[-1].ishidden() assert excinfo.traceback[-2].frame.code.name == "test_skip_simple" a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,002
raises
ref
function
with pytest.raises(pytest.skip.Exception) as excinfo:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,003
skip
ref
function
pytest.skip("xxx")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,005
ishidden
ref
function
assert excinfo.traceback[-1].ishidden()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,007
ishidden
ref
function
assert not excinfo.traceback[-2].ishidden()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,009
test_traceback_argsetup
def
function
def test_traceback_argsetup(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest @pytest.fixture def hello(request): raise ValueError("xyz") """ ) p = pytester.makepyfile("def test(hello): pass") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,010
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,019
makepyfile
ref
function
p = pytester.makepyfile("def test(hello): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,020
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,028
runpytest
ref
function
result = pytester.runpytest("--fulltrace", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,034
test_traceback_error_during_import
def
function
def test_traceback_error_during_import(self, pytester: Pytester) -> None: pytester.makepyfile( """ x = 1 x = 2 x = 17 asd """ ) result = pytester.runpytest() assert result.ret != 0 out = result.stdout.str() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,035
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,043
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,048
fnmatch_lines
ref
function
result.stdout.fnmatch_lines([" *asd*", "E*NameError*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,049
runpytest
ref
function
result = pytester.runpytest("--fulltrace")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,053
fnmatch_lines
ref
function
result.stdout.fnmatch_lines([">*asd*", "E*NameError*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,055
test_traceback_filter_error_during_fixture_collection
def
function
def test_traceback_filter_error_during_fixture_collection( self, pytester: Pytester ) -> None: """Integration test for issue #995.""" pytester.makepyfile( """ import pytest def fail_me(func): ns = {} exec('def w(): rais...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,059
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,077
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,081
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*ValueError: fail me*", "* 1 error in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,083
test_filter_traceback_generated_code
def
function
def test_filter_traceback_generated_code(self) -> None: """Test that filter_traceback() works with the fact that _pytest._code.code.Code.path attribute might return an str object. In this case, one of the entries on the traceback was produced by dynamically generated code. S...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,103
Traceback
ref
function
traceback = _pytest._code.Traceback(tb)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,105
filter_traceback
ref
function
assert not filter_traceback(traceback[-1])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,107
test_filter_traceback_path_no_longer_valid
def
function
def test_filter_traceback_path_no_longer_valid(self, pytester: Pytester) -> None: """Test that filter_traceback() works with the fact that _pytest._code.code.Code.path attribute might return an str object. In this case, one of the files in the traceback no longer exists. This fixes ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,116
syspathinsert
ref
function
pytester.syspathinsert()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,117
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,127
foo
ref
function
filter_traceback_entry_as_str.foo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,132
joinpath
ref
function
pytester.path.joinpath("filter_traceback_entry_as_str.py").unlink()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,133
Traceback
ref
function
traceback = _pytest._code.Traceback(tb)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,135
filter_traceback
ref
function
assert filter_traceback(traceback[-1])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,138
TestReportInfo
def
class
test_itemreport_reportinfo test_func_reportinfo test_class_reportinfo test_reportinfo_with_nasty_getattr
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,139
test_itemreport_reportinfo
def
function
def test_itemreport_reportinfo(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest class MyFunction(pytest.Function): def reportinfo(self): return "ABCDE", 42, "custom" def pytest_pycollect_makeitem(c...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,140
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,151
getitem
ref
function
item = pytester.getitem("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,152
getplugin
ref
function
item.config.pluginmanager.getplugin("runner")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,155
test_func_reportinfo
def
function
def test_func_reportinfo(self, pytester: Pytester) -> None: item = pytester.getitem("def test_func(): pass") path, lineno, modpath = item.reportinfo() assert os.fspath(path) == str(item.path) assert lineno == 0 assert modpath == "test_func" def test_class_reportinfo(self...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,156
getitem
ref
function
item = pytester.getitem("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,157
reportinfo
ref
function
path, lineno, modpath = item.reportinfo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,162
test_class_reportinfo
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,163
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,170
collect_by_name
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,172
reportinfo
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,177
filterwarnings
ref
function
@pytest.mark.filterwarnings(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,180
test_reportinfo_with_nasty_getattr
def
function
def test_reportinfo_with_nasty_getattr(self, pytester: Pytester) -> None: # https://github.com/pytest-dev/pytest/issues/1204 modcol = pytester.getmodulecol( """ # lineno 0 class TestClass: def __getattr__(self, name): return "th...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,182
getmodulecol
ref
function
modcol = pytester.getmodulecol(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,199
collect_by_name
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,201
reportinfo
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,202
collect
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,204
reportinfo
ref
function
path, lineno, msg = func.reportinfo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,207
test_customized_python_discovery
def
function
def test_customized_python_discovery(pytester: Pytester) -> None: pytester.makeini( """ [pytest] python_files=check_*.py python_classes=Check python_functions=check """ ) p = pytester.makepyfile( """ def check_simple(): pass cla...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,208
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,216
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,225
with_name
ref
function
p2 = p.with_name(p.name.replace("test", "check"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,227
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,228
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,232
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,234
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,237
test_customized_python_discovery_functions
def
function
def test_customized_python_discovery_functions(pytester: Pytester) -> None: pytester.makeini( """ [pytest] python_functions=_test """ ) pytester.makepyfile( """ def _test_underscore(): pass """ ) result = pytester.runpytest("--collect-only"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,238
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,244
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,250
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,251
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*_test_underscore*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,253
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,255
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,258
test_unorderable_types
def
function
def test_unorderable_types(pytester: Pytester) -> None: pytester.makepyfile( """ class TestJoinEmpty(object): pass def make_test(): class Test(object): pass Test.__name__ = "TestFoo" return Test TestFoo = make_test() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,259
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,272
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,273
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*TypeError*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,277
filterwarnings
ref
function
@pytest.mark.filterwarnings("default::pytest.PytestCollectionWarning")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,278
test_dont_collect_non_function_callable
def
function
def test_dont_collect_non_function_callable(pytester: Pytester) -> None: """Test for issue https://github.com/pytest-dev/pytest/issues/331 In this case an INTERNALERROR occurred trying to report the failure of a test like this one because pytest failed to get the source lines. """ pytester.makepyfi...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,284
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,296
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,297
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
1,306
test_class_injection_does_not_break_collection
def
class