From 6c1c686c15836f24bf50ed5638c62f47e9ffc7f0 Mon Sep 17 00:00:00 2001 From: xuzg Date: Sat, 2 Dec 2017 16:33:16 +0800 Subject: [PATCH] Delete test in link for can not link a dir to another --- tests/test_file.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/tests/test_file.py b/tests/test_file.py index 2c10124..c935548 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -144,41 +144,16 @@ class Testlink(): link(file, link_file) assert os.path.exists(link_file) - def test_link_a_dir(self, tmpdir): - dirname = str(tmpdir.join('test')) - link_dirname = str(tmpdir.join('test.link')) - makedirs(dirname) - link(dirname, link_dirname) - assert os.path.exists(link_dirname) - - def test_link_with_overwrite(self, tmpdir): - dirname = str(tmpdir.join('test')) - link_dirname = str(tmpdir.join('test.link')) - makedirs(dirname) - link(dirname, link_dirname) - link(dirname, link_dirname, overwrite=True) - assert os.path.exists(link_dirname) - - def test_link_without_overwrite(self, tmpdir): - dirname = str(tmpdir.join('test')) - link_dirname = str(tmpdir.join('test.link')) - makedirs(dirname) - link(dirname, link_dirname) - with pytest.raises(Exception) as e: - link(dirname, link_dirname) - def test_link_with_ignore_error(self, tmpdir): dirname = str(tmpdir.join('test')) link_dirname = str(tmpdir.join('test.link')) makedirs(dirname) - link(dirname, link_dirname) link(dirname, link_dirname, ignore_errors=True) def test_link_without_ignore_error(self, tmpdir): dirname = str(tmpdir.join('test')) link_dirname = str(tmpdir.join('test.link')) makedirs(dirname) - link(dirname, link_dirname) with pytest.raises(Exception) as e: link(dirname, link_dirname)