mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
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]>
15 lines
325 B
Python
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
|