Files
dvc/tests/unit/remote/ssh/test_pool.py
T
Ruslan Kuprieiev 68bebe7944 remote: hdfs: use pyarrow and connection pool
Related to #1629

Speeds up HDFS tests significantly. E.g. ExternalHDFS test goes from 600
sec to 190sec. test_open_external[HDFS] from 160sec to 3sec.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-07-20 01:12:17 +03:00

15 lines
325 B
Python

import pytest
from dvc.remote.pool import get_connection
from dvc.remote.ssh.connection import SSHConnection
def test_doesnt_swallow_errors(ssh_server):
class MyError(Exception):
pass
with pytest.raises(MyError), get_connection(
SSHConnection, **ssh_server.test_creds
):
raise MyError