From 82faf2addcc4de451edca159d435a05b55b92a21 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 7 May 2020 13:38:36 +0100 Subject: [PATCH] ufoLib_test: fix test on pypy3 shutil.rmtree doesn't like pathlib Paths on pypy3 for some reasosn https://travis-ci.org/github/fonttools/fonttools/jobs/684236676#L592 --- Tests/ufoLib/ufoLib_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/ufoLib/ufoLib_test.py b/Tests/ufoLib/ufoLib_test.py index 8ed39e85a..430e7a7da 100644 --- a/Tests/ufoLib/ufoLib_test.py +++ b/Tests/ufoLib/ufoLib_test.py @@ -76,7 +76,7 @@ def test_UFOWriter_formatVersion(tmp_path): with UFOWriter(ufo_path, formatVersion=3) as writer: assert writer.formatVersionTuple == (3, 0) - shutil.rmtree(ufo_path) + shutil.rmtree(str(ufo_path)) with UFOWriter(ufo_path, formatVersion=(2, 0)) as writer: assert writer.formatVersionTuple == (2, 0)