Author: Tim Felgentreff <[email protected]>
Branch: bitblt
Changeset: r208:65a278524d71
Date: 2013-03-18 13:52 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/65a278524d71/

Log:    more specific test

diff --git a/spyvm/test/test_primitives.py b/spyvm/test/test_primitives.py
--- a/spyvm/test/test_primitives.py
+++ b/spyvm/test/test_primitives.py
@@ -670,11 +670,12 @@
     class CallCopyBitsSimulation(Exception):
         pass
 
+    mock_bitblt = model.W_PointersObject(space.w_Point, 15)
+
     def perform_mock(w_rcvr, string):
-        if string == "simulateCopyBits":
+        if w_rcvr is mock_bitblt and string == "simulateCopyBits":
             raise CallCopyBitsSimulation
 
-    mock_bitblt = model.W_PointersObject(space.w_Point, 15)
     interp, w_frame, argument_count = mock([mock_bitblt], None)
 
     try:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to