==> Building on Q ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 860 100% 0.00kB/s 0:00:00 860 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-gdstk-0.8.2-1.log 200 100% 195.31kB/s 0:00:00 200 100% 195.31kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 771 bytes received 75 bytes 564.00 bytes/sec total size is 1,048 speedup is 1.24 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix4 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix4]...done ==> Making package: python-gdstk 0.8.2-1 (Sun Mar 27 17:09:08 2022) ==> Retrieving sources...  -> Downloading python-gdstk-0.8.2.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 133 100 133 0 0 578 0 --:--:-- --:--:-- --:--:-- 578 100 597k 0 597k 0 0 909k 0 --:--:-- --:--:-- --:--:-- 909k ==> Validating source files with sha512sums... python-gdstk-0.8.2.tar.gz ... Passed ==> Making package: python-gdstk 0.8.2-1 (Sun 27 Mar 2022 05:09:17 PM CEST) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change extra/blas 3.10.0-1 0.20 MiB extra/cblas 3.10.0-1 0.15 MiB extra/lapack 3.10.0-1 4.17 MiB core/libnsl 2.0.0-2 0.06 MiB core/python 3.10.1-2 79.11 MiB extra/python-numpy 1.22.3-1 28.66 MiB Total Installed Size: 112.35 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing blas... installing cblas... installing lapack... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-numpy... Optional dependencies for python-numpy openblas: faster linear algebra [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (19) New Version Net Change extra/hicolor-icon-theme 0.17-2 0.05 MiB extra/jsoncpp 1.9.5-1 0.25 MiB extra/libuv 1.42.0-1 0.48 MiB community/python-apipkg 2.1.0-1 0.03 MiB extra/python-appdirs 1.4.4-6 0.07 MiB extra/python-attrs 21.4.0-1 0.45 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-more-itertools 8.12.0-1 0.48 MiB extra/python-ordered-set 4.0.2-6 0.06 MiB extra/python-packaging 21.0-1 0.26 MiB community/python-pluggy 1.0.0-1 0.10 MiB community/python-py 1.11.0-1 0.71 MiB extra/python-pyparsing 3.0.7-1 0.96 MiB community/python-pytest 7.1.1-1 2.62 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/rhash 1.4.2-1 0.31 MiB extra/cmake 3.22.3-1 54.36 MiB community/python-pytest-runner 5.3.1-3 0.03 MiB extra/python-setuptools 1:59.1.0-1 2.95 MiB Total Installed Size: 64.27 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-appdirs... installing python-more-itertools... installing python-ordered-set... installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... installing python-setuptools... installing hicolor-icon-theme... installing jsoncpp... Optional dependencies for jsoncpp jsoncpp-doc: documentation installing libuv... installing rhash... installing cmake... Optional dependencies for cmake qt6-base: cmake-gui installing python-attrs... installing python-iniconfig... installing python-pluggy... installing python-apipkg... installing python-py... installing python-tomli... installing python-pytest... installing python-pytest-runner... [?25h==> Retrieving sources...  -> Found python-gdstk-0.8.2.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-gdstk-0.8.2.tar.gz with bsdtar ==> Starting build()... running build running build_ext cmake -S /build/python-gdstk/src/gdstk-0.8.2 -B /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build -DCMAKE_INSTALL_PREFIX=/build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install -DCMAKE_BUILD_TYPE=Release -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found ZLIB: /usr/lib/libz.so (found suitable version "1.2.11", minimum required is "1.2.9") -- Configuring done -- Generating done -- Build files have been written to: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build cmake --build /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build --config Release --target install [ 5%] Building CXX object CMakeFiles/gdstk.dir/src/gdsii.cpp.o [ 5%] Building CXX object CMakeFiles/gdstk.dir/src/cell.cpp.o [ 11%] Building CXX object CMakeFiles/gdstk.dir/src/library.cpp.o [ 20%] Building CXX object CMakeFiles/gdstk.dir/src/flexpath.cpp.o [ 25%] Building CXX object CMakeFiles/gdstk.dir/src/rawcell.cpp.o [ 28%] Building CXX object CMakeFiles/gdstk.dir/src/label.cpp.o [ 28%] Building CXX object CMakeFiles/gdstk.dir/src/repetition.cpp.o [ 31%] Building CXX object CMakeFiles/gdstk.dir/src/property.cpp.o [ 34%] Building CXX object CMakeFiles/gdstk.dir/src/polygon.cpp.o [ 34%] Building CXX object CMakeFiles/gdstk.dir/src/style.cpp.o [ 34%] Building CXX object CMakeFiles/gdstk.dir/src/robustpath.cpp.o [ 28%] Building CXX object CMakeFiles/gdstk.dir/src/curve.cpp.o [ 40%] Building CXX object CMakeFiles/gdstk.dir/src/reference.cpp.o [ 40%] Building CXX object CMakeFiles/gdstk.dir/src/utils.cpp.o [ 42%] Building CXX object CMakeFiles/gdstk.dir/src/clipper_tools.cpp.o [ 45%] Building CXX object CMakeFiles/gdstk.dir/src/oasis.cpp.o [ 48%] Building CXX object CMakeFiles/gdstk.dir/src/clipperlib/clipper.cpp.o [ 51%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/global_r.c.o [ 54%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/stat_r.c.o [ 57%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/geom2_r.c.o [ 60%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/poly2_r.c.o [ 62%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/merge_r.c.o [ 65%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/libqhull_r.c.o [ 68%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/geom_r.c.o [ 71%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/poly_r.c.o [ 74%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/qset_r.c.o [ 77%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/mem_r.c.o [ 80%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/random_r.c.o [ 82%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/usermem_r.c.o [ 85%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/userprintf_r.c.o [ 88%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/io_r.c.o [ 91%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/user_r.c.o [ 94%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/rboxlib_r.c.o [ 97%] Building C object CMakeFiles/gdstk.dir/src/libqhull_r/userprintf_rbox_r.c.o [100%] Linking CXX static library libgdstk.a [100%] Built target gdstk Install the project... -- Install configuration: "Release" -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/lib/libgdstk.a -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/allocator.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/array.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/cell.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/clipper_tools.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/curve.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/flexpath.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/font.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/gdsii.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/gdswriter.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/label.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/library.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/map.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/oasis.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/pathcommon.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/polygon.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/property.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/rawcell.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/reference.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/repetition.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/robustpath.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/set.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/sort.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/style.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/utils.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/vec.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk.h -- Installing: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/lib/pkgconfig/gdstk.pc building 'gdstk' extension creating build/temp.linux-riscv64-3.10/python gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/lib/python3.10/site-packages/numpy/core/include -I/build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include -I/usr/include/python3.10 -c python/gdstk_module.cpp -o build/temp.linux-riscv64-3.10/python/gdstk_module.o creating build/lib.linux-riscv64-3.10 g++ -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-3.10/python/gdstk_module.o -L/build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/lib -L/usr/lib -lgdstk -o build/lib.linux-riscv64-3.10/gdstk.cpython-310-riscv64-linux-gnu.so /usr/lib/libz.so ==> Starting check()... running pytest running egg_info creating gdstk.egg-info writing gdstk.egg-info/PKG-INFO writing dependency_links to gdstk.egg-info/dependency_links.txt writing requirements to gdstk.egg-info/requires.txt writing top-level names to gdstk.egg-info/top_level.txt writing manifest file 'gdstk.egg-info/SOURCES.txt' reading manifest file 'gdstk.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'gdstk.egg-info/SOURCES.txt' running build_ext cmake -S /build/python-gdstk/src/gdstk-0.8.2 -B /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build -DCMAKE_INSTALL_PREFIX=/build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install -DCMAKE_BUILD_TYPE=Release -- Configuring done -- Generating done -- Build files have been written to: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build cmake --build /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build --config Release --target install Consolidate compiler generated dependencies of target gdstk [100%] Built target gdstk Install the project... -- Install configuration: "Release" -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/lib/libgdstk.a -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/allocator.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/array.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/cell.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/clipper_tools.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/curve.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/flexpath.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/font.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/gdsii.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/gdswriter.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/label.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/library.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/map.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/oasis.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/pathcommon.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/polygon.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/property.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/rawcell.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/reference.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/repetition.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/robustpath.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/set.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/sort.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/style.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/utils.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk/vec.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/include/gdstk.h -- Up-to-date: /build/python-gdstk/src/gdstk-0.8.2/build/temp.linux-riscv64-3.10/cmake_build/install/lib/pkgconfig/gdstk.pc copying build/lib.linux-riscv64-3.10/gdstk.cpython-310-riscv64-linux-gnu.so -> ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-7.1.1, pluggy-1.0.0 rootdir: /build/python-gdstk/src/gdstk-0.8.2 collected 59 items tests/cell_test.py ................ [ 27%] tests/curve_test.py .. [ 30%] tests/flexpath_test.py ... [ 35%] tests/functions_test.py . [ 37%] tests/library_test.py ....FF........ [ 61%] tests/polygon_test.py ........... [ 79%] tests/property_test.py .. [ 83%] tests/reference_test.py .... [ 89%] tests/robustpath_test.py ...... [100%] =================================== FAILURES =================================== _________________________________ test_rw_gds __________________________________ tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_rw_gds0') sample_library = def test_rw_gds(tmpdir, sample_library): fname = str(tmpdir.join("test.gds")) sample_library.write_gds(fname, max_points=20) library = gdstk.read_gds(fname, unit=1e-3) assert library.name == "lib" assert len(library.cells) == 4 cells = {c.name: c for c in library.cells} assert set(cells.keys()) == { "gl_rw_gds_1", "gl_rw_gds_2", "gl_rw_gds_3", "gl_rw_gds_4", } c = cells["gl_rw_gds_1"] assert len(c.polygons) == len(c.labels) == 1 assert c.polygons[0].area() == 12.0 assert c.polygons[0].layer == 2 assert c.polygons[0].datatype == 4 assert c.labels[0].text == "label" assert c.labels[0].origin[0] == 2 and c.labels[0].origin[1] == -2 assert c.labels[0].anchor == "w" assert c.labels[0].rotation == 10 assert c.labels[0].magnification == 1.5 assert c.labels[0].x_reflection == True assert c.labels[0].layer == 5 assert c.labels[0].texttype == 6 c = cells["gl_rw_gds_2"] assert len(c.polygons) == 2 assert isinstance(c.polygons[0], gdstk.Polygon) and isinstance( c.polygons[1], gdstk.Polygon ) c = cells["gl_rw_gds_3"] assert len(c.references) == 1 assert isinstance(c.references[0], gdstk.Reference) assert c.references[0].cell == cells["gl_rw_gds_1"] assert c.references[0].origin[0] == 0 and c.references[0].origin[1] == 2 assert c.references[0].rotation == -90 assert c.references[0].magnification == 2 assert c.references[0].x_reflection == True c = cells["gl_rw_gds_4"] assert len(c.references) == 1 assert isinstance(c.references[0], gdstk.Reference) assert c.references[0].cell == cells["gl_rw_gds_2"] assert c.references[0].origin[0] == -2 and c.references[0].origin[1] == -4 assert c.references[0].rotation == numpy.pi assert c.references[0].magnification == 0.5 assert c.references[0].x_reflection == True assert c.references[0].repetition.columns == 2 assert c.references[0].repetition.rows == 3 > assert c.references[0].repetition.v1 == (-2.0, 0.0) E assert (-2.0, -4.163336342344337e-17) == (-2.0, 0.0) E At index 1 diff: -4.163336342344337e-17 != 0.0 E Use -v to get more diff tests/library_test.py:153: AssertionError ______________________________ test_rw_gds_filter ______________________________ tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_rw_gds_filter0') sample_library = def test_rw_gds_filter(tmpdir, sample_library): fname = str(tmpdir.join("test.gds")) sample_library.write_gds(fname, max_points=20) library = gdstk.read_gds(fname, unit=1e-3, filter={(0, 0)}) assert library.name == "lib" assert len(library.cells) == 4 cells = {c.name: c for c in library.cells} assert set(cells.keys()) == { "gl_rw_gds_1", "gl_rw_gds_2", "gl_rw_gds_3", "gl_rw_gds_4", } c = cells["gl_rw_gds_1"] assert len(c.polygons) == 0 assert len(c.labels) == 1 assert c.labels[0].text == "label" assert c.labels[0].origin[0] == 2 and c.labels[0].origin[1] == -2 assert c.labels[0].anchor == "w" assert c.labels[0].rotation == 10 assert c.labels[0].magnification == 1.5 assert c.labels[0].x_reflection == True assert c.labels[0].layer == 5 assert c.labels[0].texttype == 6 c = cells["gl_rw_gds_2"] assert len(c.polygons) == 2 assert isinstance(c.polygons[0], gdstk.Polygon) and isinstance( c.polygons[1], gdstk.Polygon ) c = cells["gl_rw_gds_3"] assert len(c.references) == 1 assert isinstance(c.references[0], gdstk.Reference) assert c.references[0].cell == cells["gl_rw_gds_1"] assert c.references[0].origin[0] == 0 and c.references[0].origin[1] == 2 assert c.references[0].rotation == -90 assert c.references[0].magnification == 2 assert c.references[0].x_reflection == True c = cells["gl_rw_gds_4"] assert len(c.references) == 1 assert isinstance(c.references[0], gdstk.Reference) assert c.references[0].cell == cells["gl_rw_gds_2"] assert c.references[0].origin[0] == -2 and c.references[0].origin[1] == -4 assert c.references[0].rotation == numpy.pi assert c.references[0].magnification == 0.5 assert c.references[0].x_reflection == True assert c.references[0].repetition.columns == 2 assert c.references[0].repetition.rows == 3 > assert c.references[0].repetition.v1 == (-2.0, 0.0) E assert (-2.0, -4.163336342344337e-17) == (-2.0, 0.0) E At index 1 diff: -4.163336342344337e-17 != 0.0 E Use -v to get more diff tests/library_test.py:208: AssertionError =========================== short test summary info ============================ FAILED tests/library_test.py::test_rw_gds - assert (-2.0, -4.163336342344337e... FAILED tests/library_test.py::test_rw_gds_filter - assert (-2.0, -4.163336342... ========================= 2 failed, 57 passed in 1.88s ========================= ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix4/build receiving incremental file list python-gdstk-0.8.2-1-riscv64-build.log python-gdstk-0.8.2-1-riscv64-check.log sent 62 bytes received 3,318 bytes 1,352.00 bytes/sec total size is 20,197 speedup is 5.98