summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /tests/test_util.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
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):