aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_osutils.py')
-rw-r--r--tests/test_osutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_osutils.py b/tests/test_osutils.py
index e56d3ab..1809282 100644
--- a/tests/test_osutils.py
+++ b/tests/test_osutils.py
@@ -10,7 +10,7 @@ from unittest import mock
import pytest
from snakeoil import osutils
from snakeoil.contexts import Namespace
-from snakeoil.fileutils import touch, write_file
+from snakeoil.fileutils import touch
from snakeoil.osutils import native_readdir, supported_systems, sizeof_fmt
from snakeoil.osutils.mount import MNT_DETACH, MS_BIND, mount, umount
@@ -272,7 +272,7 @@ class Test_unlink_if_exists:
f = self.func
path = tmp_path / 'target'
f(path)
- write_file(path, 'w', '')
+ path.write_text('')
f(path)
assert not path.exists()
# and once more for good measure...