NL i(dZddlmZddlZddlZddlZddlZddlZejjejje ddZ GddejZy)z*Test cases that run tests as subprocesses.) annotationsNz..creZdZejej jddddZy) TestExternalwinzrt tests don't work on windowsc g}tjj}tjdk(r|gdz }ntjdk(r|dgz }dj ||d<t j5}tjtjddd |d |d g|tjj td d }tjj}dtjvrd|d<tjtjddg||}|dk7r td dddy#1swYyxYw)z!Run C unit tests in a subprocess.darwin)-O0z-mmacosx-version-min=10.10z-stdlib=libc++linuxr  CPPFLAGSzsetup.py build_extz --build-lib=z --build-temp=z--run-capi-testsmypyczlib-rt)envcwd GTEST_COLORyesz-cz6import sys, test_capi; sys.exit(test_capi.run_tests())rzmake test: C unit test failureN)osenvironcopysysplatformjointempfileTemporaryDirectory subprocess check_call executablepathbase_dircallAssertionError)selfcppflagsrtmpdirstatuss ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/mypyc/test/test_external.pytest_c_unit_testzTestExternal.test_c_unit_tests:!jjoo <<8 # O OH \\W $  H((8,J ( ( * Gf**NN"6(+#F8,& GGLL7H= F**//#CBJJ.%*M"__'_`F {$%EFF- G G Gs =CE  EN)returnNone) __name__ __module__ __qualname__unittestskipIfrr startswithr'r&rrs6X__S\\,,U35UV"GW"Gr1r)__doc__ __future__rrrrrr-rrdirname__file__rTestCaserr0r1r&r7sQ0"   77<<14 >&G8$$&Gr1