Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r89512:833aad96c408 Date: 2017-01-12 15:40 +0100 http://bitbucket.org/pypy/pypy/changeset/833aad96c408/
Log: fix test diff --git a/pypy/interpreter/test/test_fsencode.py b/pypy/interpreter/test/test_fsencode.py --- a/pypy/interpreter/test/test_fsencode.py +++ b/pypy/interpreter/test/test_fsencode.py @@ -82,4 +82,8 @@ def test_null_byte(self): space = self.space w_u = space.newunicode(u'abc\x00def') - space.raises_w(space.w_ValueError, space.fsencode, w_u) + # this can behave in two different ways depending on how + # much initialized the space is: space.fsencode() can raise + # ValueError directly, or return a wrapped bytes with the 0 + # embedded---and then space.fsencode_w() should raise ValueError. + space.raises_w(space.w_ValueError, space.fsencode_w, w_u) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit