Skip to content

Close sqlite connections in SqliteAccountInfo#566

Open
olzhasar-reef wants to merge 3 commits intomasterfrom
close-sqlite-connections
Open

Close sqlite connections in SqliteAccountInfo#566
olzhasar-reef wants to merge 3 commits intomasterfrom
close-sqlite-connections

Conversation

@olzhasar-reef
Copy link
Collaborator

  • Add close method to SqliteAccountInfo, explicitly close temporary connections
  • Refactor account_info tests, close used sqlite connections

raw_api = B2RawHTTPApi(B2Http())
raw_api_test_helper(raw_api, not dont_cleanup_old_buckets)
except Exception:
traceback.print_exc(file=sys.stdout)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what was the reasoning behind that logic, but we used to end up with unhelpful error messages like the following:

>           pytest.fail('test_raw_api failed')
E           Failed: test_raw_api failed

test/integration/test_raw_api.py:78: Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants