diff --git a/kitty_tests/main.py b/kitty_tests/main.py index afdeca092..2f10b2eb4 100644 --- a/kitty_tests/main.py +++ b/kitty_tests/main.py @@ -10,7 +10,7 @@ import time import unittest from collections.abc import Callable, Generator, Iterator, Sequence -from contextlib import contextmanager, suppress +from contextlib import contextmanager from functools import lru_cache from tempfile import TemporaryDirectory from threading import Thread @@ -184,8 +184,7 @@ def run_go(packages: set[str], names: str) -> GoProc: for name in names: cmd.extend(('-run', name)) cmd += go_pkg_args - with suppress(FileExistsError): - os.link('kitty_tests/GraphemeBreakTest.json', 'tools/wcswidth/GraphemeBreakTest.json') + shutil.copy2('kitty_tests/GraphemeBreakTest.json', 'tools/wcswidth/GraphemeBreakTest.json') return GoProc(cmd)