Merge pull request #2302 from shcheklein/fix-2259

url info: fix infinite recustion on deepcopy
This commit is contained in:
Ruslan Kuprieiev
2019-07-21 04:32:30 +03:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -1,4 +1,5 @@
import pytest
import copy
from dvc.path_info import URLInfo, CloudURLInfo
@@ -34,3 +35,10 @@ def test_url_info_parents(cls):
cls("ssh://[email protected]/test1"),
cls("ssh://[email protected]/"),
]
@pytest.mark.parametrize("cls", [URLInfo, CloudURLInfo])
def test_url_info_deepcopy(cls):
u1 = cls("ssh://[email protected]:/test1/test2/test3")
u2 = copy.deepcopy(u1)
assert u1 == u2