Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r81812:c2ea9594b23c Date: 2016-01-15 17:47 +0100 http://bitbucket.org/pypy/pypy/changeset/c2ea9594b23c/
Log: Fix two tests in kwargsdict that have a typo diff --git a/pypy/objspace/std/test/test_kwargsdict.py b/pypy/objspace/std/test/test_kwargsdict.py --- a/pypy/objspace/std/test/test_kwargsdict.py +++ b/pypy/objspace/std/test/test_kwargsdict.py @@ -92,12 +92,12 @@ values = [1, 2, 3] storage = strategy.erase((keys, values)) d = W_DictObject(space, strategy, storage) - assert (space.view_as_kwargs(d) == keys, values) + assert space.view_as_kwargs(d) == (keys, values) strategy = EmptyDictStrategy(space) storage = strategy.get_empty_storage() d = W_DictObject(space, strategy, storage) - assert (space.view_as_kwargs(d) == [], []) + assert space.view_as_kwargs(d) == ([], []) def test_from_empty_to_kwargs(): strategy = EmptyKwargsDictStrategy(space) diff --git a/pypy/objspace/std/test/test_tupleobject.py b/pypy/objspace/std/test/test_tupleobject.py --- a/pypy/objspace/std/test/test_tupleobject.py +++ b/pypy/objspace/std/test/test_tupleobject.py @@ -237,8 +237,8 @@ class AppTestW_TupleObject: def test_is_true(self): assert not () - assert (5,) - assert (5, 3) + assert bool((5,)) + assert bool((5, 3)) def test_len(self): assert len(()) == 0 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit