mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Dont rely on hard links
This commit is contained in:
@@ -10,7 +10,7 @@ import sys
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user