diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-09 11:22:51 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-09 11:22:51 +1000 |
| commit | d98be353ecd5deff97804312ec798fb227adfbc1 (patch) | |
| tree | 84491474f6e0648dea3a7689f0626a4809492007 /tests/test_util.py | |
| parent | d9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff) | |
general: Make pywal compatible with python 3.5
Diffstat (limited to 'tests/test_util.py')
| -rwxr-xr-x | tests/test_util.py | 5 |
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): |
