Skip to content

Commit f420c26

Browse files
authored
Fix Lint (#1408)
* fix lint * add correct exception class
1 parent f3ab69e commit f420c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test_put_get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def test_put_error(tmpdir):
6161
# Permission error should be raised
6262
sf_file_transfer_agent = agent_class(cursor, query, ret, raise_put_get_error=True)
6363
sf_file_transfer_agent.execute()
64-
with pytest.raises(Exception):
64+
with pytest.raises(OperationalError, match="PermissionError"):
6565
sf_file_transfer_agent.result()
6666

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

7373
chmod(file1, 0o700)

0 commit comments

Comments
 (0)