Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.4
Changeset: r63303:e21d1c57481c
Date: 2013-04-12 19:38 -0400
http://bitbucket.org/pypy/pypy/changeset/e21d1c57481c/
Log: merge default
diff --git a/pypy/module/_io/test/test_ztranslation.py
b/pypy/module/_io/test/test_ztranslation.py
new file mode 100644
--- /dev/null
+++ b/pypy/module/_io/test/test_ztranslation.py
@@ -0,0 +1,4 @@
+from pypy.objspace.fake.checkmodule import checkmodule
+
+def test_checkmodule():
+ checkmodule('_io')
diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -58,6 +58,10 @@
class W_MyType(W_MyObject):
def __init__(self):
self.mro_w = [w_some_obj(), w_some_obj()]
+ self.dict_w = {'__str__': w_some_obj()}
+
+ def get_module(self):
+ return w_some_obj()
def w_some_obj():
if NonConstant(False):
@@ -318,7 +322,7 @@
ObjSpace.ExceptionTable +
['int', 'str', 'float', 'long', 'tuple', 'list',
'dict', 'unicode', 'complex', 'slice', 'bool',
- 'basestring', 'object']):
+ 'basestring', 'object', 'bytearray']):
setattr(FakeObjSpace, 'w_' + name, w_some_obj())
FakeObjSpace.w_type = w_some_type()
#
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit