[pypy-commit] stmgc c8-hashtable: fix test

arigo noreply at buildbot.pypy.org
Thu Mar 12 15:37:11 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: c8-hashtable
Changeset: r1720:471ce04ba011
Date: 2015-03-12 15:37 +0100
http://bitbucket.org/pypy/stmgc/changeset/471ce04ba011/

Log:	fix test

diff --git a/c8/test/test_hashtable.py b/c8/test/test_hashtable.py
--- a/c8/test/test_hashtable.py
+++ b/c8/test/test_hashtable.py
@@ -145,9 +145,15 @@
         self.switch(1)
         self.start_transaction()
         tl1 = self.tls[self.current_thread]
-        py.test.raises(Conflict, "htset(h, 1234, lp2, tl1)")
+        htset(h, 1234, lp2, tl1)
         #
         self.switch(0)
+        self.commit_transaction()
+        #
+        py.test.raises(Conflict, self.switch, 1)
+        #
+        self.switch(0)
+        self.start_transaction()
         self.pop_root()
         stm_major_collect()       # to get rid of the hashtable object
         self.commit_transaction()


More information about the pypy-commit mailing list