Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lint #1408

Merged
merged 2 commits into from
Jan 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/unit/test_put_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ def test_put_error(tmpdir):
# Permission error should be raised
sf_file_transfer_agent = agent_class(cursor, query, ret, raise_put_get_error=True)
sf_file_transfer_agent.execute()
with pytest.raises(Exception):
with pytest.raises(OperationalError, match="PermissionError"):
sf_file_transfer_agent.result()

# unspecified, should fail because flag is on by default now
sf_file_transfer_agent = agent_class(cursor, query, ret)
sf_file_transfer_agent.execute()
with pytest.raises(Exception):
with pytest.raises(OperationalError, match="PermissionError"):
sf_file_transfer_agent.result()

chmod(file1, 0o700)
Expand Down