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/approx.py
testing/python/approx.py
731
approx
ref
function
assert approx(expected) == DeviceArray(actual, size=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
731
DeviceArray
ref
function
assert approx(expected) == DeviceArray(actual, size=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
732
approx
ref
function
assert approx(expected) == DeviceScalar(actual)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
732
DeviceScalar
ref
function
assert approx(expected) == DeviceScalar(actual)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
733
approx
ref
function
assert approx(DeviceScalar(expected)) == actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
733
DeviceScalar
ref
function
assert approx(DeviceScalar(expected)) == actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
734
approx
ref
function
assert approx(DeviceScalar(expected)) == DeviceScalar(actual)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
734
DeviceScalar
ref
function
assert approx(DeviceScalar(expected)) == DeviceScalar(actual)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
734
DeviceScalar
ref
function
assert approx(DeviceScalar(expected)) == DeviceScalar(actual)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
736
test_doctests
def
function
def test_doctests(self, mocked_doctest_runner) -> None: import doctest parser = doctest.DocTestParser() assert approx.__doc__ is not None test = parser.get_doctest( approx.__doc__, {"approx": approx}, approx.__name__, None, None ) mocked_doctest_runner.ru...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
741
get_doctest
ref
function
test = parser.get_doctest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
744
run
ref
function
mocked_doctest_runner.run(test)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
746
test_unicode_plus_minus
def
function
def test_unicode_plus_minus(self, pytester: Pytester) -> None: """ Comparing approx instances inside lists should not produce an error in the detailed diff. Integration test for issue #2111. """ pytester.makepyfile( """ import pytest def te...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
751
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
759
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
760
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
764
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
767
param
ref
function
pytest.param([[1]], "data structures", id="nested-list"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
768
param
ref
function
pytest.param({"key": {"key": 1}}, "dictionaries", id="nested-dict"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
771
test_expected_value_type_error
def
function
def test_expected_value_type_error(self, x, name): with pytest.raises( TypeError, match=fr"pytest.approx\(\) does not support nested {name}:", ): approx(x) @pytest.mark.parametrize( "x", [ pytest.param(None), pytest.par...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
772
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
776
approx
ref
function
approx(x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
778
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
781
param
ref
function
pytest.param(None),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
782
param
ref
function
pytest.param("string"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
783
param
ref
function
pytest.param(["string"], id="nested-str"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
784
param
ref
function
pytest.param({"key": "string"}, id="dict-with-string"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
787
test_nonnumeric_okay_if_equal
def
function
def test_nonnumeric_okay_if_equal(self, x): assert x == approx(x) @pytest.mark.parametrize( "x", [ pytest.param("string"), pytest.param(["string"], id="nested-str"), pytest.param({"key": "string"}, id="dict-with-string"), ], ) def test...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
788
approx
ref
function
assert x == approx(x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
790
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
793
param
ref
function
pytest.param("string"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
794
param
ref
function
pytest.param(["string"], id="nested-str"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
795
param
ref
function
pytest.param({"key": "string"}, id="dict-with-string"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
798
test_nonnumeric_false_if_unequal
def
function
def test_nonnumeric_false_if_unequal(self, x): """For nonnumeric types, x != pytest.approx(y) reduces to x != y""" assert "ab" != approx("abc") assert ["ab"] != approx(["abc"]) # in particular, both of these should return _False assert {"a": 1.0} != approx({"a": None}) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
800
approx
ref
function
assert "ab" != approx("abc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
801
approx
ref
function
assert ["ab"] != approx(["abc"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
803
approx
ref
function
assert {"a": 1.0} != approx({"a": None})
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
804
approx
ref
function
assert {"a": None} != approx({"a": 1.0})
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
806
approx
ref
function
assert 1.0 != approx(None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
807
approx
ref
function
assert None != approx(1.0) # noqa: E711
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
809
approx
ref
function
assert 1.0 != approx([None])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
810
approx
ref
function
assert None != approx([1.0]) # noqa: E711
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
812
skipif
ref
function
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires ordered dicts")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
813
test_nonnumeric_dict_repr
def
function
def test_nonnumeric_dict_repr(self): """Dicts with non-numerics and infinites have no tolerances""" x1 = {"foo": 1.0000005, "bar": None, "foobar": inf} assert ( repr(approx(x1)) == "approx({'foo': 1.0000005 ± 1.0e-06, 'bar': None, 'foobar': inf})" ) def t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
817
approx
ref
function
repr(approx(x1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
821
test_nonnumeric_list_repr
def
function
def test_nonnumeric_list_repr(self): """Lists with non-numerics and infinites have no tolerances""" x1 = [1.0000005, None, inf] assert repr(approx(x1)) == "approx([1.0000005 ± 1.0e-06, None, inf])" @pytest.mark.parametrize( "op", [ pytest.param(operator.le, i...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
824
approx
ref
function
assert repr(approx(x1)) == "approx([1.0000005 ± 1.0e-06, None, inf])"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
826
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
829
param
ref
function
pytest.param(operator.le, id="<="),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
830
param
ref
function
pytest.param(operator.lt, id="<"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
831
param
ref
function
pytest.param(operator.ge, id=">="),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
832
param
ref
function
pytest.param(operator.gt, id=">"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
835
test_comparison_operator_type_error
def
function
def test_comparison_operator_type_error(self, op): """pytest.approx should raise TypeError for operators other than == and != (#2003).""" with pytest.raises(TypeError): op(1, approx(1, rel=1e-6, abs=1e-12)) def test_numpy_array_with_scalar(self): np = pytest.importorskip("nu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
837
raises
ref
function
with pytest.raises(TypeError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
838
op
ref
function
op(1, approx(1, rel=1e-6, abs=1e-12))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
838
approx
ref
function
op(1, approx(1, rel=1e-6, abs=1e-12))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
840
test_numpy_array_with_scalar
def
function
def test_numpy_array_with_scalar(self): np = pytest.importorskip("numpy") actual = np.array([1 + 1e-7, 1 - 1e-8]) expected = 1.0 assert actual == approx(expected, rel=5e-7, abs=0) assert actual != approx(expected, rel=5e-8, abs=0) assert approx(expected, rel=5e-7, a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
841
importorskip
ref
function
np = pytest.importorskip("numpy")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
843
array
ref
function
actual = np.array([1 + 1e-7, 1 - 1e-8])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
846
approx
ref
function
assert actual == approx(expected, rel=5e-7, abs=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
847
approx
ref
function
assert actual != approx(expected, rel=5e-8, abs=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
848
approx
ref
function
assert approx(expected, rel=5e-7, abs=0) == actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
849
approx
ref
function
assert approx(expected, rel=5e-8, abs=0) != actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
851
test_numpy_scalar_with_array
def
function
def test_numpy_scalar_with_array(self): np = pytest.importorskip("numpy") actual = 1.0 expected = np.array([1 + 1e-7, 1 - 1e-8]) assert actual == approx(expected, rel=5e-7, abs=0) assert actual != approx(expected, rel=5e-8, abs=0) assert approx(expected, rel=5e-7, a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
852
importorskip
ref
function
np = pytest.importorskip("numpy")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
855
array
ref
function
expected = np.array([1 + 1e-7, 1 - 1e-8])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
857
approx
ref
function
assert actual == approx(expected, rel=5e-7, abs=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
858
approx
ref
function
assert actual != approx(expected, rel=5e-8, abs=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
859
approx
ref
function
assert approx(expected, rel=5e-7, abs=0) == actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
860
approx
ref
function
assert approx(expected, rel=5e-8, abs=0) != actual
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
862
test_generic_sized_iterable_object
def
function
def test_generic_sized_iterable_object(self): class MySizedIterable: def __iter__(self): return iter([1, 2, 3, 4]) def __len__(self): return 4 expected = MySizedIterable() assert [1, 2, 3, 4] == approx(expected)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
863
MySizedIterable
def
class
__iter__ __len__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
870
MySizedIterable
ref
function
expected = MySizedIterable()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/approx.py
testing/python/approx.py
871
approx
ref
function
assert [1, 2, 3, 4] == approx(expected)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
17
TestModule
def
class
test_failing_import test_import_duplicate test_import_prepend_append test_syntax_error_in_module test_module_considers_pluginmanager_at_import test_invalid_test_module_name test_show_traceback_import_error test_show_traceback_import_error_unicode
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
18
test_failing_import
def
function
def test_failing_import(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol("import alksdjalskdjalkjals") pytest.raises(Collector.CollectError, modcol.collect) def test_import_duplicate(self, pytester: Pytester) -> None: a = pytester.mkdir("a") b = pytester.mkdir("...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
19
getmodulecol
ref
function
modcol = pytester.getmodulecol("import alksdjalskdjalkjals")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
20
raises
ref
function
pytest.raises(Collector.CollectError, modcol.collect)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
22
test_import_duplicate
def
function
def test_import_duplicate(self, pytester: Pytester) -> None: a = pytester.mkdir("a") b = pytester.mkdir("b") p1 = a.joinpath("test_whatever.py") p1.touch() p2 = b.joinpath("test_whatever.py") p2.touch() # ensure we don't have it imported already sys.mo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
25
joinpath
ref
function
p1 = a.joinpath("test_whatever.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
26
touch
ref
function
p1.touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
27
joinpath
ref
function
p2 = b.joinpath("test_whatever.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
28
touch
ref
function
p2.touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
32
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
33
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
44
test_import_prepend_append
def
function
def test_import_prepend_append( self, pytester: Pytester, monkeypatch: MonkeyPatch ) -> None: root1 = pytester.mkdir("root1") root2 = pytester.mkdir("root2") root1.joinpath("x456.py").touch() root2.joinpath("x456.py").touch() p = root2.joinpath("test_x456.py") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
49
joinpath
ref
function
root1.joinpath("x456.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
49
touch
ref
function
root1.joinpath("x456.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
50
joinpath
ref
function
root2.joinpath("x456.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
50
touch
ref
function
root2.joinpath("x456.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
51
joinpath
ref
function
p = root2.joinpath("test_x456.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
52
syspath_prepend
ref
function
monkeypatch.syspath_prepend(str(root1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
53
write_text
ref
function
p.write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
64
context
ref
function
with monkeypatch.context() as mp:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
66
inline_run
ref
function
reprec = pytester.inline_run("--import-mode=append")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
67
assertoutcome
ref
function
reprec.assertoutcome(passed=0, failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
68
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
69
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
71
test_syntax_error_in_module
def
function
def test_syntax_error_in_module(self, pytester: Pytester) -> None: modcol = pytester.getmodulecol("this is a syntax error") pytest.raises(modcol.CollectError, modcol.collect) pytest.raises(modcol.CollectError, modcol.collect) def test_module_considers_pluginmanager_at_import(self, pytes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py
testing/python/collect.py
72
getmodulecol
ref
function
modcol = pytester.getmodulecol("this is a syntax error")