[pypy-svn] rev 2491 - pypy/trunk/src/pypy/appspace
pmaupin at codespeak.net
pmaupin at codespeak.net
Thu Dec 18 13:24:49 CET 2003
Author: pmaupin
Date: Thu Dec 18 13:24:49 2003
New Revision: 2491
Modified:
pypy/trunk/src/pypy/appspace/builtin_types_test.py
Log:
Test finished until more functionality added
Modified: pypy/trunk/src/pypy/appspace/builtin_types_test.py
==============================================================================
--- pypy/trunk/src/pypy/appspace/builtin_types_test.py (original)
+++ pypy/trunk/src/pypy/appspace/builtin_types_test.py Thu Dec 18 13:24:49 2003
@@ -608,6 +608,7 @@
except ValueError: pass
else: raise TestFailed, 'dict.update(), __getitem__ expected ValueError'
print '6.6.3 dict.fromkeys'
+''' TODO: Need classmethods for built-in types
# dict.fromkeys()
if dict.fromkeys('abc') != {'a':None, 'b':None, 'c':None}:
raise TestFailed, 'dict.fromkeys did not work as a class method'
@@ -637,7 +638,6 @@
if type(dictlike().fromkeys('a')) is not dictlike:
raise TestFailed, 'dictsubclass.fromkeys created wrong type'
-''' TODO: fromkeys not recognized as a classmethod here
from UserDict import UserDict
class mydict(dict):
def __new__(cls):
@@ -757,9 +757,9 @@
except TypeError: pass
else: raise TestFailed, 'type(), w/4 args expected TypeError'
+''' TODO: No buffer support yet XXX
print '6.8 buffer'
-print 'Buffers'
try: buffer('asdf', -1)
except ValueError: pass
else: raise TestFailed, "buffer('asdf', -1) should raise ValueError"
@@ -787,3 +787,4 @@
try: a[0:1] = 'g'
except TypeError: pass
else: raise TestFailed, "buffer slice assignment should raise TypeError"
+'''
More information about the Pypy-commit
mailing list