diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2020-05-29 21:45:54 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-05-29 21:45:54 +0000 |
| commit | cbfa1363d7201848a56e7209146e81b9c51aa8af (patch) | |
| tree | 2ffb5b0b50670a10744d7ef562cef4074360f820 /test/aaa_profiling | |
| parent | 7ff6cf1eaa84f1387d60d4eb7ba752480a6bf567 (diff) | |
| parent | 9272ae4f77d670bd2ff4c55f50bf47ad374e8319 (diff) | |
| download | sqlalchemy-cbfa1363d7201848a56e7209146e81b9c51aa8af.tar.gz | |
Merge "Remove loader option cycle"
Diffstat (limited to 'test/aaa_profiling')
| -rw-r--r-- | test/aaa_profiling/test_orm.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/aaa_profiling/test_orm.py b/test/aaa_profiling/test_orm.py index 7456d5f5b..f261bc811 100644 --- a/test/aaa_profiling/test_orm.py +++ b/test/aaa_profiling/test_orm.py @@ -849,6 +849,11 @@ class JoinedEagerLoadTest(fixtures.MappedTest): @profiling.function_call_count() def go(): for i in range(100): + # NOTE: this test was broken in + # 77f1b7d236dba6b1c859bb428ef32d118ec372e6 because we started + # clearing out the attributes after the first iteration. make + # sure the attributes are there every time. + assert compile_state.attributes exec_opts = {} bind_arguments = {} ORMCompileState.orm_pre_session_exec( @@ -860,6 +865,7 @@ class JoinedEagerLoadTest(fixtures.MappedTest): execution_options=exec_opts, bind_arguments=bind_arguments, ) + r.context.compiled.compile_state = compile_state obj = ORMCompileState.orm_setup_cursor_result(sess, {}, r) list(obj) |
