Author: Remi Meier Branch: c7-refactor Changeset: r783:961ea6611d93 Date: 2014-02-19 15:46 +0100 http://bitbucket.org/pypy/stmgc/changeset/961ea6611d93/
Log: use SOME_MEDIUM_SIZE and SOME_LARGE_SIZE constants to allocate objects -> fails currently diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test/test_random.py @@ -250,7 +250,12 @@ def do(self, ex, global_state, thread_state): r = get_new_root_name(False) thread_state.push_roots(ex) - ex.do('%s = stm_allocate(16)' % r) + size = global_state.rnd.choice([ + 16, + "SOME_MEDIUM_SIZE+16", + "SOME_LARGE_SIZE+16", + ]) + ex.do('%s = stm_allocate(%s)' % (r, size)) assert thread_state.transaction_state.write_root(r, 0) is None thread_state.pop_roots(ex) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit