Author: Armin Rigo <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit