The test applies neither to the trunk nor the 3.6 branch.
There is an API mismatch regarding the database interface in your test case: db.conn() does not exist and db.open() works.
Also, your testcase says DB.conn() which I'm not sure was ever working.
Please try to provide a test case that works directly and try to make it work against a current version of the release branch you are referring to.
The test applies neither to the trunk nor the 3.6 branch.
There is an API mismatch regarding the database interface in your test case: db.conn() does not exist and db.open() works.
Also, your testcase says DB.conn() which I'm not sure was ever working.
Please try to provide a test case that works directly and try to make it work against a current version of the release branch you are referring to.