From d98be353ecd5deff97804312ec798fb227adfbc1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 9 Aug 2017 11:22:51 +1000 Subject: general: Make pywal compatible with python 3.5 --- tests/test_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/test_main.py') 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)""" -- cgit v1.2.3