summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util.py')
-rwxr-xr-xtests/test_util.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index bc551ef..aae0356 100755
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -49,10 +49,9 @@ class TestUtil(unittest.TestCase):
def test_create_dir(self):
"""> Create a directory."""
- tmp_dir = pathlib.Path("/tmp/test_dir")
+ tmp_dir = "/tmp/test_dir"
util.create_dir(tmp_dir)
- result = tmp_dir.is_dir()
- self.assertTrue(result)
+ self.assertTrue(os.path.isdir(tmp_dir))
os.rmdir(tmp_dir)
def test_hex_to_rgb_black(self):