aboutsummaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-08-09 11:22:51 +1000
committerDylan Araps <[email protected]>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /tests/test_util.py
parentMerge pull request #74 from deviantfero/patch-1 (diff)
downloadpywal-d98be353ecd5deff97804312ec798fb227adfbc1.tar.xz
pywal-d98be353ecd5deff97804312ec798fb227adfbc1.zip
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):