[pypy-commit] pypy stm: Fix test_interp_transaction.
arigo
noreply at buildbot.pypy.org
Sun Jan 22 10:53:06 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r51627:a18852e15aae
Date: 2012-01-22 10:52 +0100
http://bitbucket.org/pypy/pypy/changeset/a18852e15aae/
Log: Fix test_interp_transaction.
diff --git a/pypy/module/transaction/test/test_interp_transaction.py b/pypy/module/transaction/test/test_interp_transaction.py
--- a/pypy/module/transaction/test/test_interp_transaction.py
+++ b/pypy/module/transaction/test/test_interp_transaction.py
@@ -3,8 +3,14 @@
class FakeSpace:
- def new_exception_class(self, name):
- return "some error class"
+ def getbuiltinmodule(self, name):
+ assert name == 'transaction'
+ return 'transaction module'
+ def getattr(self, w_obj, w_name):
+ assert w_obj == 'transaction module'
+ return 'some stuff from the transaction module'
+ def wrap(self, x):
+ return 'wrapped stuff'
def call_args(self, w_callback, args):
w_callback(*args)
More information about the pypy-commit
mailing list