MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_isclasscheck_issue53

Function test_isclasscheck_issue53

testing/test_unittest.py:51–62  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

49
50
51def test_isclasscheck_issue53(pytester: Pytester) -> None:
52 testpath = pytester.makepyfile(
53 """
54 import unittest
55 class _E(object):
56 def __getattr__(self, tag):
57 pass
58 E = _E()
59 """
60 )
61 result = pytester.runpytest(testpath)
62 assert result.ret == ExitCode.NO_TESTS_COLLECTED
63
64
65def test_setup(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected