summaryrefslogtreecommitdiff
path: root/tests/test_main.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_main.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
Diffstat (limited to 'tests/test_main.py')
-rw-r--r--tests/test_main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_main.py b/tests/test_main.py
index 9262c8f..7f1a1bb 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -2,6 +2,8 @@
import unittest
from unittest.mock import MagicMock
+import os
+
from pywal import __main__
from pywal import reload
from pywal.settings import CACHE_DIR
@@ -14,7 +16,7 @@ class TestMain(unittest.TestCase):
"""> Test arg parsing (-c)"""
args = __main__.get_args(["-c"])
__main__.process_args(args)
- self.assertFalse((CACHE_DIR / "schemes").is_dir())
+ self.assertFalse(os.path.isdir(str(CACHE_DIR / "schemes")))
def test_args_e(self):
"""> Test arg parsing (-e)"""