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

Function test_assert_with_unicode

testing/test_assertion.py:1595–1603  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1593
1594
1595def test_assert_with_unicode(pytester: Pytester) -> None:
1596 pytester.makepyfile(
1597 """\
1598 def test_unicode():
1599 assert '유니코드' == 'Unicode'
1600 """
1601 )
1602 result = pytester.runpytest()
1603 result.stdout.fnmatch_lines(["*AssertionError*"])
1604
1605
1606def test_raise_unprintable_assertion_error(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