Add another str() for paths

Using py.path for os.path is only supported since 3.6
This commit is contained in:
Florian Bruhin 2017-09-17 01:01:02 +02:00
parent 5aa653a54f
commit b31db0d0d5

View File

@ -400,7 +400,7 @@ class TestMove:
def test_no_old_dir(self, dirs, caplog):
"""Nothing should happen without any old directory."""
standarddir._move_data(dirs.old, dirs.new)
standarddir._move_data(str(dirs.old), str(dirs.new))
assert not any(rec.message.startswith('Migrating data from')
for rec in caplog.records)