[pypy-commit] pypy default: Fix two tests in kwargsdict that have a typo
arigo
pypy.commits at gmail.com
Fri Jan 15 11:52:53 EST 2016
Author: Armin Rigo <arigo at 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
More information about the pypy-commit
mailing list