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 0x1c33d9f0>

    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

[/buildbot/slave/own-linux-x86-32/build/pypy/objspace/std/test/test_unicodeobject.py:372]:9: AssertionError
builder: own-linux-x86-32 build #9465+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_count_str_unicode