[pypy-svn] r74559 - pypy/trunk/pypy/objspace/std/test
fijal at codespeak.net
fijal at codespeak.net
Wed May 19 06:24:11 CEST 2010
Author: fijal
Date: Wed May 19 06:24:10 2010
New Revision: 74559
Modified:
pypy/trunk/pypy/objspace/std/test/test_listobject.py
Log:
Improve tests a little bit (untested code path)
Modified: pypy/trunk/pypy/objspace/std/test/test_listobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_listobject.py (original)
+++ pypy/trunk/pypy/objspace/std/test/test_listobject.py Wed May 19 06:24:10 2010
@@ -5,7 +5,7 @@
from pypy.conftest import gettestobjspace
-class TestW_ListObject:
+class TestW_ListObject(object):
def test_is_true(self):
w = self.space.wrap
@@ -342,7 +342,7 @@
self.space.w_True)
-class AppTestW_ListObject:
+class AppTestW_ListObject(object):
def test_call_list(self):
assert list('') == []
assert list('abc') == ['a', 'b', 'c']
@@ -576,6 +576,12 @@
l *= 2
assert l == [0, 1, 0, 1]
+ def test_mul_errors(self):
+ try:
+ [1, 2, 3] * (3,)
+ except TypeError:
+ pass
+
def test_index(self):
c = range(10)
assert c.index(0) == 0
More information about the Pypy-commit
mailing list