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

Function test_skip_test_with_unicode

testing/test_nose.py:422–432  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

420
421
422def test_skip_test_with_unicode(pytester: Pytester) -> None:
423 pytester.makepyfile(
424 """\
425 import unittest
426 class TestClass():
427 def test_io(self):
428 raise unittest.SkipTest('😊')
429 """
430 )
431 result = pytester.runpytest()
432 result.stdout.fnmatch_lines(["* 1 skipped *"])
433
434
435def test_raises(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected