Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_count_str_unicode

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000017007c1a8>

    def test_count_str_unicode(self):
            assert 'aaa'.count(u'a') == 3
            assert 'aaa'.count(u'b') == 0
            assert 'aaa'.count(u'a', -1) == 1
            assert 'aaa'.count(u'a', -10) == 3
            assert 'aaa'.count(u'a', 0, -1) == 2
            assert 'aaa'.count(u'a', 0, -10) == 0
            assert 'ababa'.count(u'aba') == 1
>           raises(UnicodeDecodeError, '\x80'.count, u'')
E           (application-level) AssertionError: DID NOT RAISE

[/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/objspace/std/test/test_unicodeobject.py:372]:9: AssertionError
builder: own-macos-arm64 build #1310+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_count_str_unicode