Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r788:7716adfbddb6 Date: 2012-08-07 11:16 +0200 http://bitbucket.org/cffi/cffi/changeset/7716adfbddb6/
Log: Fix tests diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -1300,7 +1300,8 @@ BArray = new_array_type(new_pointer_type(BByte), None) a = newp(BArray, [65, 66, 67]) assert type(string(a)) is str and string(a) == 'ABC' - assert string(a, 8).startswith('ABC') # may contain additional garbage + if 'PY_DOT_PY' not in globals(): + assert string(a, 8).startswith('ABC') # may contain additional garbage def test_string_wchar(): BWChar = new_primitive_type("wchar_t") @@ -1310,7 +1311,8 @@ BArray = new_array_type(new_pointer_type(BWChar), None) a = newp(BArray, [u'A', u'B', u'C']) assert type(string(a)) is unicode and string(a) == u'ABC' - assert string(a, 8).startswith(u'ABC') # may contain additional garbage + if 'PY_DOT_PY' not in globals(): + assert string(a, 8).startswith(u'ABC') # may contain additional garbage def test_string_typeerror(): BShort = new_primitive_type("short") _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit