Revert "build(deps): Bump pylint from 2.9.6 to 2.11.1 (#6636)" (#6842)

This reverts commit 464620806c.
This commit is contained in:
Gao
2021-10-20 12:41:00 +03:00
committed by GitHub
parent 4b2bec89ec
commit 6de3e734ed
40 changed files with 100 additions and 111 deletions
+4 -6
View File
@@ -34,13 +34,13 @@ class TestDefaultOutput(TestDvc):
filename = str(uuid4())
tmpfile = os.path.join(tmpdir, filename)
with open(tmpfile, "w", encoding="utf-8") as fd:
with open(tmpfile, "w") as fd:
fd.write("content")
ret = main(["import-url", tmpfile])
self.assertEqual(ret, 0)
self.assertTrue(os.path.exists(filename))
with open(filename, encoding="utf-8") as fd:
with open(filename) as fd:
self.assertEqual(fd.read(), "content")
@@ -59,7 +59,7 @@ class TestImportFilename(TestDvc):
super().setUp()
tmp_dir = self.mkdtemp()
self.external_source = os.path.join(tmp_dir, "file")
with open(self.external_source, "w", encoding="utf-8") as fobj:
with open(self.external_source, "w") as fobj:
fobj.write("content")
def test(self):
@@ -334,9 +334,7 @@ def test_import_url_to_remote_directory(tmp_dir, dvc, workspace, local_remote):
assert len(stage.outs) == 1
hash_info = stage.outs[0].hash_info
with open(
local_remote.hash_to_path_info(hash_info.value), encoding="utf-8"
) as stream:
with open(local_remote.hash_to_path_info(hash_info.value)) as stream:
file_parts = json.load(stream)
assert len(file_parts) == 3