diff options
author | 2022-12-23 23:37:47 +0200 | |
---|---|---|
committer | 2022-12-25 20:26:37 +0200 | |
commit | 2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d (patch) | |
tree | 82b1e9cbad597a7e1efd936ad04546301fda8974 /tests | |
parent | remove proces.closerange (diff) | |
download | snakeoil-2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d.tar.gz snakeoil-2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d.tar.bz2 snakeoil-2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d.zip |
remove osutils.native_readdir.listdir
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_osutils.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_osutils.py b/tests/test_osutils.py index 264d670..fac9853 100644 --- a/tests/test_osutils.py +++ b/tests/test_osutils.py @@ -18,8 +18,7 @@ from snakeoil.osutils.mount import MNT_DETACH, MS_BIND, mount, umount class ReaddirCommon: @pytest.fixture def subdir(self, tmp_path): - subdir = tmp_path / "dir" - subdir.mkdir() + (subdir := tmp_path / "dir").mkdir() (tmp_path / "file").touch() os.mkfifo((tmp_path / "fifo")) return subdir @@ -30,10 +29,6 @@ class ReaddirCommon: class TestNativeListDir(ReaddirCommon): - def test_listdir(self, tmp_path, subdir): - assert set(native_readdir.listdir(tmp_path)) == {"dir", "fifo", "file"} - assert native_readdir.listdir(subdir) == [] - def test_listdir_dirs(self, tmp_path, subdir): assert native_readdir.listdir_dirs(tmp_path) == ["dir"] assert native_readdir.listdir_dirs(subdir) == [] @@ -46,7 +41,6 @@ class TestNativeListDir(ReaddirCommon): return self._test_missing( tmp_path, ( - native_readdir.listdir, native_readdir.listdir_dirs, native_readdir.listdir_files, ), |