general: Make pywal compatible with python 3.5

This commit is contained in:
Dylan Araps
2017-08-09 11:22:51 +10:00
parent d9a0865277
commit d98be353ec
12 changed files with 42 additions and 40 deletions

View File

@ -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):