X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c012c70176e1958d755768893c08f4b0892fb51d..c86fb362329a2b980ed94200e0652f9c74d56bbd:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index ba834c5..6f0ffa3 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -200,7 +200,7 @@ class BlackTestCase(unittest.TestCase): self.assertTrue(ff(tmp_file, write_back=black.WriteBack.DIFF)) sys.stdout.seek(0) actual = sys.stdout.read() - actual = actual.replace(tmp_file.name, "") + actual = actual.replace(str(tmp_file), "") finally: sys.stdout = hold_stdout os.unlink(tmp_file)