File obs_log_None_standard_riscv64.txt of Package failed_python-Kajiki

[    0s] Using BUILD_ROOT=/var/cache/obs/worker/root_2/.mount
[    0s] Using BUILD_ARCH=riscv64
[    0s] Doing kvm build in /var/cache/obs/worker/root_2/root
[    0s] 
[    0s] 
[    0s] i02-ch1d started "build python-Kajiki.spec" at Fri Aug 22 22:52:07 UTC 2025.
[    0s] 
[    0s] Building failed_python-Kajiki for project 'home:lalala123:RISCV_test1' repository 'standard' arch 'riscv64' srcmd5 '5a8c6285ea878458c60db6abfcfe2449'
[    0s] 
[    0s] processing recipe /var/cache/obs/worker/root_2/.build-srcdir/python-Kajiki.spec ...
[    0s] running changelog2spec --target rpm --file /var/cache/obs/worker/root_2/.build-srcdir/python-Kajiki.spec
[    0s] init_buildsystem --configdir /var/run/obs/worker/2/build/configs --cachedir /var/cache/build --prepare --clean --rpmlist /var/cache/obs/worker/root_2/.build.rpmlist /var/cache/obs/worker/root_2/.build-srcdir/python-Kajiki.spec build ...
[    1s] [1/28] preinstalling compat-usrmerge-tools...
[    1s] [2/28] preinstalling system-user-root...
[    1s] [3/28] preinstalling terminfo-base...
[    1s] [4/28] preinstalling filesystem...
[    1s] [5/28] preinstalling glibc...
[    1s] [6/28] preinstalling fillup...
[    1s] [7/28] preinstalling libacl1...
[    1s] [8/28] preinstalling libattr1...
[    1s] [9/28] preinstalling libbz2-1...
[    1s] [10/28] preinstalling libcap2...
[    1s] [11/28] preinstalling libgmp10...
[    1s] [12/28] preinstalling libgpg-error0...
[    1s] [13/28] preinstalling libjitterentropy3...
[    1s] [14/28] preinstalling liblua5_4-5...
[    1s] [15/28] preinstalling liblzma5...
[    1s] [16/28] preinstalling libpcre2-8-0...
[    1s] [17/28] preinstalling libpopt0...
[    1s] [18/28] preinstalling libz1...
[    1s] [19/28] preinstalling libzstd1...
[    1s] [20/28] preinstalling libncurses6...
[    1s] [21/28] preinstalling libreadline8...
[    1s] [22/28] preinstalling libselinux1...
[    1s] [23/28] preinstalling libgcrypt20...
[    1s] [24/28] preinstalling bash...
[    1s] [25/28] preinstalling bash-sh...
[    1s] [26/28] preinstalling qemu-linux-user...
[    2s] [27/28] preinstalling coreutils...
[    2s] [28/28] preinstalling rpm...
[    2s] 
[    2s] [1/18] preinstalling grep...
[    2s] [2/18] preinstalling kernel-obs-build...
[    2s] [3/18] preinstalling libaudit1...
[    2s] [4/18] preinstalling libcap-ng0...
[    2s] [5/18] preinstalling libcrypt1...
[    2s] [6/18] preinstalling libeconf0...
[    2s] [7/18] preinstalling libgcc_s1...
[    2s] [8/18] preinstalling libsmartcols1...
[    2s] [9/18] preinstalling libuuid1...
[    2s] [10/18] preinstalling libblkid1...
[    2s] [11/18] preinstalling perl-base...
[    2s] [12/18] preinstalling permctl...
[    2s] [13/18] preinstalling libmount1...
[    2s] [14/18] preinstalling permissions-config...
[    2s] [15/18] preinstalling libfdisk1...
[    2s] [16/18] preinstalling permissions...
[    2s] [17/18] preinstalling pam...
[    2s] [18/18] preinstalling util-linux...
[    2s] copying packages...
[    3s] reordering...cycle: lua54 -> lua-interpreter
[    3s]   breaking dependency lua54 -> lua-interpreter
[    3s] cycle: binutils -> libctf0
[    3s]   breaking dependency libctf0 -> binutils
[    3s] cycle: python311-base -> libpython3_11-1_0
[    3s]   breaking dependency python311-base -> libpython3_11-1_0
[    3s] cycle: python312-base -> libpython3_12-1_0
[    3s]   breaking dependency python312-base -> libpython3_12-1_0
[    3s] cycle: python313-base -> libpython3_13-1_0
[    3s]   breaking dependency python313-base -> libpython3_13-1_0
[    3s] cycle: rpm-config-SUSE -> rpm
[    3s]   breaking dependency rpm-config-SUSE -> rpm
[    3s] done
[    3s] Detected virtio-serial support
[    4s] booting kvm...
[    4s] ### VM INTERACTION START ###
[    4s] Using virtio-serial support and enabling console input
[    4s] /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none -cpu host -M pc,accel=kvm,usb=off,dump-guest-core=off,vmport=off -sandbox on -bios /usr/share/qemu/qboot.rom -object rng-random,filename=/dev/random,id=rng0 -device virtio-rng-pci,rng=rng0 -object iothread,id=io0 -run-with user=qemu -net none -kernel /var/cache/obs/worker/root_2/.mount/boot/kernel -initrd /var/cache/obs/worker/root_2/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext4 rootflags=noatime elevator=noop nmi_watchdog=0 rw ia32_emulation=1 oops=panic panic=1 quiet console=hvc0 init=/.build/initvm.x86_64 -m 16384 -drive file=/var/cache/obs/worker/root_2/root,format=raw,if=none,id=disk,cache=unsafe,aio=io_uring -device virtio-blk-pci,iothread=io0,drive=disk,serial=0 -drive file=/var/cache/obs/worker/root_2/swap,format=raw,if=none,id=swap,cache=unsafe,aio=io_uring -device virtio-blk-pci,iothread=io0,drive=swap,serial=1 -device virtio-serial,max_ports=2 -device virtconsole,chardev=virtiocon0 -chardev stdio,mux=on,id=virtiocon0 -mon chardev=virtiocon0 -chardev socket,id=monitor,server=on,wait=off,path=/var/cache/obs/worker/root_2/root.qemu/monitor -mon chardev=monitor,mode=readline -smp 4
[    5s] [!p]104[?7h[    0.627395][    T1] systemd[1]: Failed to start Virtual Console Setup.
[    5s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mVirtual Console Setup[0m.
[    7s] [6n[32766;32766H[6n[!p]104[?7h### VM INTERACTION END ###
[    7s] ^[[24;10R^[[24;80R2nd stage started in virtual machine
[    7s] machine type: riscv64
[    7s] Linux version: 6.16.1-1-default #1 SMP PREEMPT_DYNAMIC Fri Aug 15 16:49:58 UTC 2025 (2e1765c)
[    7s] Time: Fri Aug 22 22:52:14 UTC 2025
[    7s] Increasing log level from now on...
[    7s] [    3.309101][  T578] sysrq: Changing Loglevel
[    7s] [    3.309190][  T578] sysrq: Loglevel set to 4
[    7s] Enable sysrq operations
[    8s] Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
[    8s] no label, UUID=07d481c7-8377-493b-9c62-53a5e2a69083
[    8s] WARNING: udev not running, creating extra device nodes
[    8s] logging output to //.build.log...
[    8s] processing recipe //.build-srcdir/python-Kajiki.spec ...
[    8s] init_buildsystem --configdir /.build/configs --cachedir /var/cache/build //.build-srcdir/python-Kajiki.spec build ...
[    9s] initializing rpm db...
[    9s] querying package ids...
[   18s] [1/168] cumulate compat-usrmerge-tools-84.87-5.5
[   18s] [2/168] cumulate crypto-policies-20250124.4d262e7-4.1
[   18s] [3/168] cumulate file-magic-5.46-4.1
[   18s] [4/168] cumulate kernel-obs-build-6.16.1-1.1
[   18s] [5/168] cumulate pkgconf-m4-2.2.0-1.1
[   18s] [6/168] cumulate python-rpm-macros-20241120.6ae645f-1.2
[   18s] [7/168] cumulate system-user-root-20190513-2.4
[   18s] [8/168] cumulate terminfo-base-6.5.20250809-80.1
[   18s] [9/168] cumulate filesystem-84.87-18.1
[   18s] [10/168] cumulate glibc-2.42-1.1
[   18s] [11/168] cumulate diffutils-3.12-1.1
[   18s] [12/168] cumulate envsubst-mini-0.26-2.1
[   18s] [13/168] cumulate fillup-1.42-281.1
[   18s] [14/168] cumulate glibc-gconv-modules-extra-2.42-1.1
[   18s] [15/168] cumulate glibc-locale-base-2.42-1.1
[   18s] [16/168] cumulate libacl1-2.3.2-2.1
[   18s] [17/168] cumulate libalternatives1-1.2+31.da24cd4-1.1
[   18s] [18/168] cumulate libatomic1-15.1.1+git10189-1.1
[   18s] [19/168] cumulate libattr1-2.5.2-1.1
[   18s] [20/168] cumulate libaudit1-4.0.2-4.1
[   18s] [21/168] cumulate libbz2-1-1.0.8-5.3
[   18s] [22/168] cumulate libcap-ng0-0.8.5-1.1
[   18s] [23/168] cumulate libcap2-2.75-1.1
[   18s] [24/168] cumulate libcrypt1-4.4.38-1.1
[   18s] [25/168] cumulate libeconf0-0.7.10-1.1
[   18s] [26/168] cumulate libexpat1-2.7.1-2.1
[   18s] [27/168] cumulate libffi8-3.4.7-1.1
[   18s] [28/168] cumulate libgcc_s1-15.1.1+git10189-1.1
[   18s] [29/168] cumulate libgdbm6-1.24-2.1
[   18s] [30/168] cumulate libgmp10-6.3.0-5.1
[   18s] [31/168] cumulate libgomp1-15.1.1+git10189-1.1
[   18s] [32/168] cumulate libgpg-error0-1.55-1.1
[   18s] [33/168] cumulate libitm1-15.1.1+git10189-1.1
[   18s] [34/168] cumulate libjitterentropy3-3.6.3-1.1
[   18s] [35/168] cumulate liblua5_4-5-5.4.8-3.1
[   18s] [36/168] cumulate liblz1-1.15-1.1
[   18s] [37/168] cumulate liblz4-1-1.10.0-2.1
[   18s] [38/168] cumulate liblzma5-5.8.1-1.1
[   18s] [39/168] cumulate libmpdec4-4.0.1-2.1
[   18s] [40/168] cumulate libpcre2-8-0-10.45-2.1
[   18s] [41/168] cumulate libpkgconf5-2.2.0-1.1
[   18s] [42/168] cumulate libpopt0-1.19-1.4
[   18s] [43/168] cumulate libseccomp2-2.6.0-2.1
[   18s] [44/168] cumulate libsmartcols1-2.41.1-3.1
[   18s] [45/168] cumulate libuuid1-2.41.1-3.1
[   18s] [46/168] cumulate libz1-1.3.1-1.1
[   18s] [47/168] cumulate libzstd1-1.5.7-3.1
[   18s] [48/168] cumulate patch-2.8-1.1
[   18s] [49/168] cumulate update-alternatives-1.22.21-1.1
[   18s] [50/168] cumulate which-2.23-1.1
[   18s] [51/168] cumulate libncurses6-6.5.20250809-80.1
[   18s] [52/168] cumulate alts-1.2+31.da24cd4-1.1
[   18s] [53/168] cumulate libblkid1-2.41.1-3.1
[   18s] [54/168] cumulate libctf-nobfd0-2.43-10.1
[   18s] [55/168] cumulate libgdbm_compat4-1.24-2.1
[   18s] [56/168] cumulate libisl23-0.27-1.1
[   18s] [57/168] cumulate libmpfr6-4.2.2-1.1
[   18s] [58/168] cumulate libreadline8-8.3.1-1.1
[   18s] [59/168] cumulate libselinux1-3.9-2.1
[   18s] [60/168] cumulate libstdc++6-15.1.1+git10189-1.1
[   18s] [61/168] cumulate ncurses-utils-6.5.20250809-80.1
[   18s] [62/168] cumulate perl-base-5.42.0-1.1
[   18s] [63/168] cumulate pkgconf-2.2.0-1.1
[   18s] [64/168] cumulate libelf1-0.192-2.1
[   18s] [65/168] cumulate libgcrypt20-1.11.2-6.1
[   18s] [66/168] cumulate libxml2-2-2.13.8-3.1
[   18s] [67/168] cumulate permctl-1699_20250120-1.2
[   18s] [68/168] cumulate libmagic1-5.46-4.1
[   18s] [69/168] cumulate build-mkbaselibs-20250708-1.1
[   18s] [70/168] cumulate bash-5.3.3-1.1
[   18s] [71/168] cumulate dwz-0.15-6.1
[   18s] [72/168] cumulate findutils-4.10.0-2.1
[   18s] [73/168] cumulate fdupes-2.4.0-1.1
[   18s] [74/168] cumulate file-5.46-4.1
[   18s] [75/168] cumulate libasan8-15.1.1+git10189-1.1
[   18s] [76/168] cumulate libfdisk1-2.41.1-3.1
[   18s] [77/168] cumulate liblsan0-15.1.1+git10189-1.1
[   18s] [78/168] cumulate libmount1-2.41.1-3.1
[   18s] [79/168] cumulate libmpc3-1.3.1-1.5
[   18s] [80/168] cumulate libtsan2-15.1.1+git10189-1.1
[   18s] [81/168] cumulate libubsan1-15.1.1+git10189-1.1
[   18s] [82/168] cumulate sed-4.9-2.2
[   18s] [83/168] cumulate tar-1.35-4.1
[   18s] [84/168] cumulate libdw1-0.192-2.1
[   18s] [85/168] cumulate perl-5.42.0-1.1
[   18s] [86/168] cumulate bash-sh-5.3.3-1.1
[   18s] [87/168] cumulate brp-check-suse-84.87+git20230324.8680ce4-1.1
[   18s] [88/168] cumulate perl-rpm-packaging-1.2-1.1
[   18s] [89/168] cumulate libasm1-0.192-2.1
[   18s] [90/168] cumulate cpp15-15.1.1+git10189-1.1
[   18s] [91/168] cumulate qemu-linux-user-10.0.3-83.1
[   18s] [92/168] cumulate cpio-2.15-6.1
[   18s] [93/168] cumulate cpp-15-1.1
[   18s] [94/168] cumulate gzip-1.14-1.1
[   18s] [95/168] cumulate make-4.4.1-3.1
[   18s] [96/168] cumulate bzip2-1.0.8-5.3
[   18s] [97/168] cumulate grep-3.12-1.1
[   18s] [98/168] cumulate pkgconf-pkg-config-2.2.0-1.1
[   18s] [99/168] cumulate xz-5.8.1-1.1
[   18s] [100/168] cumulate gettext-runtime-mini-0.26-2.1
[   18s] [101/168] cumulate gawk-5.3.2-1.1
[   18s] [102/168] cumulate coreutils-9.7-3.1
[   18s] [103/168] cumulate elfutils-0.192-2.1
[   18s] [104/168] cumulate linux-glibc-devel-6.16-1.1
[   18s] [105/168] cumulate systemd-rpm-macros-26-1.1
[   18s] [106/168] cumulate libxcrypt-devel-4.4.38-1.1
[   18s] [107/168] cumulate libopenssl3-3.5.2-1.1
[   18s] [108/168] cumulate permissions-config-1699_20250120-1.2
[   18s] [109/168] cumulate polkit-default-privs-1550+20250721.f1b71a3-1.1
[   18s] [110/168] cumulate gettext-tools-mini-0.26-2.1
[   18s] [111/168] cumulate aaa_base-84.87+git20250805.3069494-1.1
[   18s] [112/168] cumulate aaa_base-malloccheck-84.87+git20250805.3069494-1.1
[   18s] [113/168] cumulate permissions-1699_20250120-1.2
[   18s] [114/168] cumulate glibc-devel-2.42-1.1
[   18s] [115/168] cumulate rpmlint-mini-2.7.0+git20250710.a7f0a67c-18.42
[   18s] [116/168] cumulate libarchive13-3.8.1-1.1
[   18s] [117/168] cumulate pam-1.7.1-3.1
[   18s] [118/168] cumulate post-build-checks-84.87+git20250725.0c3a172-1.1
[   18s] [119/168] cumulate util-linux-2.41.1-3.1
[   18s] [120/168] cumulate rpm-config-SUSE-20250423-1.1
[   18s] [121/168] cumulate libctf0-2.43-10.1
[   18s] [122/168] cumulate lua54-5.4.8-3.1
[   18s] [123/168] cumulate python313-base-3.13.7-4.2
[   18s] [124/168] cumulate python311-base-3.11.13-7.1
[   18s] [125/168] cumulate python312-base-3.12.11-4.1
[   18s] [126/168] cumulate compat-usrmerge-build-84.87-5.5
[   18s] [127/168] cumulate python311-iniconfig-2.1.0-1.1
[   18s] [128/168] cumulate python311-nine-1.2.0-1.2
[   18s] [129/168] cumulate python311-packaging-25.0-1.1
[   18s] [130/168] cumulate python311-pluggy-1.6.0-1.1
[   18s] [131/168] cumulate python311-tzdata-2025.2-1.1
[   18s] [132/168] cumulate python312-iniconfig-2.1.0-1.1
[   18s] [133/168] cumulate python312-nine-1.2.0-1.2
[   18s] [134/168] cumulate python312-packaging-25.0-1.1
[   18s] [135/168] cumulate python312-pluggy-1.6.0-1.1
[   18s] [136/168] cumulate python312-tzdata-2025.2-1.1
[   18s] [137/168] cumulate python313-iniconfig-2.1.0-1.1
[   18s] [138/168] cumulate python313-nine-1.2.0-1.2
[   18s] [139/168] cumulate python313-packaging-25.0-1.1
[   18s] [140/168] cumulate python313-pluggy-1.6.0-1.1
[   18s] [141/168] cumulate python313-tzdata-2025.2-1.1
[   18s] [142/168] cumulate libpython3_11-1_0-3.11.13-7.1
[   18s] [143/168] cumulate libpython3_12-1_0-3.12.11-4.1
[   18s] [144/168] cumulate libpython3_13-1_0-3.13.7-4.2
[   18s] [145/168] cumulate lua-interpreter-5-3.1
[   18s] [146/168] cumulate python311-setuptools-78.1.1-1.1
[   18s] [147/168] cumulate python312-setuptools-78.1.1-1.1
[   18s] [148/168] cumulate python313-setuptools-78.1.1-1.1
[   18s] [149/168] cumulate python311-Pygments-2.19.2-2.1
[   18s] [150/168] cumulate python312-Pygments-2.19.2-2.1
[   18s] [151/168] cumulate python313-Pygments-2.19.2-2.1
[   18s] [152/168] cumulate binutils-2.43-10.1
[   18s] [153/168] cumulate rpm-4.20.1-6.1
[   18s] [154/168] cumulate python311-Babel-2.17.0-2.1
[   18s] [155/168] cumulate python312-Babel-2.17.0-2.1
[   18s] [156/168] cumulate python313-Babel-2.17.0-2.1
[   18s] [157/168] cumulate python-rpm-packaging-20210526+a18ca48-1.6
[   18s] [158/168] cumulate python311-pytest-8.4.1-1.1
[   18s] [159/168] cumulate python312-pytest-8.4.1-1.1
[   18s] [160/168] cumulate python313-pytest-8.4.1-1.1
[   18s] [161/168] cumulate build-compare-20240801T083050.024a3a7-1.1
[   18s] [162/168] cumulate librpmbuild10-4.20.1-6.1
[   18s] [163/168] cumulate debugedit-5.1-1.1
[   18s] [164/168] cumulate gcc15-15.1.1+git10189-1.1
[   18s] [165/168] cumulate gcc15-PIE-15.1.1+git10189-1.1
[   18s] [166/168] cumulate gcc-15-1.1
[   18s] [167/168] cumulate gcc-PIE-15-1.1
[   18s] [168/168] cumulate rpm-build-4.20.1-6.1
[   18s] now installing cumulated packages
[   19s] Preparing...                          ########################################
[   19s] Updating / installing...
[   19s] system-user-root-20190513-2.4         ########################################
[   19s] terminfo-base-6.5.20250809-80.1       ########################################
[   19s] python-rpm-macros-20241120.6ae645f-1.2########################################
[   19s] pkgconf-m4-2.2.0-1.1                  ########################################
[   20s] file-magic-5.46-4.1                   ########################################
[   20s] crypto-policies-20250124.4d262e7-4.1  ########################################
[   20s] compat-usrmerge-tools-84.87-5.5       ########################################
[   20s] filesystem-84.87-18.1                 ########################################
[   20s] glibc-2.42-1.1                        ########################################
[   20s] libz1-1.3.1-1.1                       ########################################
[   20s] libbz2-1-1.0.8-5.3                    ########################################
[   20s] libgcc_s1-15.1.1+git10189-1.1         ########################################
[   21s] liblzma5-5.8.1-1.1                    ########################################
[   21s] libstdc++6-15.1.1+git10189-1.1        ########################################
[   21s] libzstd1-1.5.7-3.1                    ########################################
[   21s] libelf1-0.192-2.1                     ########################################
[   21s] libcrypt1-4.4.38-1.1                  ########################################
[   21s] libgmp10-6.3.0-5.1                    ########################################
[   22s] perl-base-5.42.0-1.1                  ########################################
[   22s] libacl1-2.3.2-2.1                     ########################################
[   22s] libuuid1-2.41.1-3.1                   ########################################
[   22s] libmpfr6-4.2.2-1.1                    ########################################
[   22s] libdw1-0.192-2.1                      ########################################
[   22s] fillup-1.42-281.1                     ########################################
[   22s] libcap2-2.75-1.1                      ########################################
[   22s] update-alternatives-1.22.21-1.1       ########################################
[   22s] libeconf0-0.7.10-1.1                  ########################################
[   22s] libblkid1-2.41.1-3.1                  ########################################
[   22s] libexpat1-2.7.1-2.1                   ########################################
[   22s] libffi8-3.4.7-1.1                     ########################################
[   22s] libgomp1-15.1.1+git10189-1.1          ########################################
[   23s] liblua5_4-5-5.4.8-3.1                 ########################################
[   23s] libmpdec4-4.0.1-2.1                   ########################################
[   23s] libpopt0-1.19-1.4                     ########################################
[   23s] libncurses6-6.5.20250809-80.1         ########################################
[   23s] libreadline8-8.3.1-1.1                ########################################
[   23s] bash-5.3.3-1.1                        ########################################
[   23s] bash-sh-5.3.3-1.1                     ########################################
[   23s] xz-5.8.1-1.1                          ########################################
[   24s] gawk-5.3.2-1.1                        ########################################
[   24s] cpio-2.15-6.1                         ########################################
[   24s] permctl-1699_20250120-1.2             ########################################
[   24s] libmpc3-1.3.1-1.5                     ########################################
[   24s] libisl23-0.27-1.1                     ########################################
[   28s] cpp15-15.1.1+git10189-1.1             ########################################
[   28s] dwz-0.15-6.1                          ########################################
[   28s] diffutils-3.12-1.1                    ########################################
[   28s] libaudit1-4.0.2-4.1                   ########################################
[   28s] libgdbm6-1.24-2.1                     ########################################
[   29s] libjitterentropy3-3.6.3-1.1           ########################################
[   29s] libpcre2-8-0-10.45-2.1                ########################################
[   29s] libselinux1-3.9-2.1                   ########################################
[   29s] sed-4.9-2.2                           ########################################
[   29s] grep-3.12-1.1                         ########################################
[   29s] findutils-4.10.0-2.1                  ########################################
[   29s] libmount1-2.41.1-3.1                  ########################################
[   29s] tar-1.35-4.1                          ########################################
[   29s] libgdbm_compat4-1.24-2.1              ########################################
[   33s] perl-5.42.0-1.1                       ########################################
[   33s] perl-rpm-packaging-1.2-1.1            ########################################
[   33s] cpp-15-1.1                            ########################################
[   33s] gzip-1.14-1.1                         ########################################
[   33s] make-4.4.1-3.1                        ########################################
[   33s] bzip2-1.0.8-5.3                       ########################################
[   33s] ncurses-utils-6.5.20250809-80.1       ########################################
[   33s] libfdisk1-2.41.1-3.1                  ########################################
[   33s] libasm1-0.192-2.1                     ########################################
[   34s] elfutils-0.192-2.1                    ########################################
[   34s] libasan8-15.1.1+git10189-1.1          ########################################
[   34s] liblsan0-15.1.1+git10189-1.1          ########################################
[   34s] libtsan2-15.1.1+git10189-1.1          ########################################
[   34s] libubsan1-15.1.1+git10189-1.1         ########################################
[   34s] libxml2-2-2.13.8-3.1                  ########################################
[   35s] libctf-nobfd0-2.43-10.1               ########################################
[   35s] libctf0-2.43-10.1                     ########################################
[   38s] binutils-2.43-10.1                    ########################################
[   39s] update-alternatives: using /usr/bin/ld.bfd to provide /usr/bin/ld (ld) in auto mode
[   39s] envsubst-mini-0.26-2.1                ########################################
[   39s] gettext-runtime-mini-0.26-2.1         ########################################
[   40s] glibc-gconv-modules-extra-2.42-1.1    ########################################
[   41s] gettext-tools-mini-0.26-2.1           ########################################
[   41s] glibc-locale-base-2.42-1.1            ########################################
[   41s] libalternatives1-1.2+31.da24cd4-1.1   ########################################
[   41s] alts-1.2+31.da24cd4-1.1               ########################################
[   41s] lua-interpreter-5-3.1                 ########################################
[   41s] lua54-5.4.8-3.1                       ########################################
[   41s] libatomic1-15.1.1+git10189-1.1        ########################################
[   41s] libattr1-2.5.2-1.1                    ########################################
[   42s] coreutils-9.7-3.1                     ########################################
[   42s] libopenssl3-3.5.2-1.1                 ########################################
[   45s] python313-base-3.13.7-4.2             ########################################
[   45s] libpython3_13-1_0-3.13.7-4.2          ########################################
[   49s] python311-base-3.11.13-7.1            ########################################
[   49s] libpython3_11-1_0-3.11.13-7.1         ########################################
[   52s] python312-base-3.12.11-4.1            ########################################
[   53s] libpython3_12-1_0-3.12.11-4.1         ########################################
[   53s] python313-packaging-25.0-1.1          ########################################
[   53s] aaa_base-84.87+git20250805.3069494-1.1########################################
[   53s] Updating /etc/sysconfig/proxy ...
[   53s] aaa_base-malloccheck-84.87+git20250805########################################
[   53s] python-rpm-packaging-20210526+a18ca48-########################################
[   53s] python312-iniconfig-2.1.0-1.1         ########################################
[   53s] python312-packaging-25.0-1.1          ########################################
[   53s] python312-pluggy-1.6.0-1.1            ########################################
[   53s] python312-tzdata-2025.2-1.1           ########################################
[   54s] python312-setuptools-78.1.1-1.1       ########################################
[   55s] python312-Pygments-2.19.2-2.1         ########################################
[   55s] python311-iniconfig-2.1.0-1.1         ########################################
[   55s] python311-packaging-25.0-1.1          ########################################
[   55s] python311-pluggy-1.6.0-1.1            ########################################
[   55s] python311-tzdata-2025.2-1.1           ########################################
[   56s] python311-setuptools-78.1.1-1.1       ########################################
[   57s] python311-Pygments-2.19.2-2.1         ########################################
[   57s] python313-iniconfig-2.1.0-1.1         ########################################
[   58s] python313-pluggy-1.6.0-1.1            ########################################
[   58s] python313-tzdata-2025.2-1.1           ########################################
[   59s] python313-setuptools-78.1.1-1.1       ########################################
[   59s] python313-Pygments-2.19.2-2.1         ########################################
[   60s] linux-glibc-devel-6.16-1.1            ########################################
[   60s] systemd-rpm-macros-26-1.1             ########################################
[   60s] permissions-config-1699_20250120-1.2  ########################################
[   60s] Updating /etc/sysconfig/security ...
[   61s] Checking permissions and ownerships - using the permissions files
[   61s] 	/usr/share/permissions/permissions
[   61s] 	/usr/share/permissions/permissions.easy
[   61s] 	/etc/permissions.local
[   61s] /usr/sbin/unix_chkpwd: setting to root:shadow 4755 (wrong owner/group root:root)
[   61s] permissions-1699_20250120-1.2         ########################################
[   61s] pam-1.7.1-3.1                         ########################################
[   61s] polkit-default-privs-1550+20250721.f1b########################################
[   61s] Updating /etc/sysconfig/security ...
[   62s] can't open /etc/polkit-1/rules.d/90-default-privs.rules.new: No such file or directory
[   62s] warning: %post(polkit-default-privs-1550+20250721.f1b71a3-1.1.noarch) scriptlet failed, exit status 2
[   62s] debugedit-5.1-1.1                     ########################################
[   62s] libcap-ng0-0.8.5-1.1                  ########################################
[   62s] libgpg-error0-1.55-1.1                ########################################
[   62s] libgcrypt20-1.11.2-6.1                ########################################
[   62s] rpm-config-SUSE-20250423-1.1          ########################################
[   63s] rpm-4.20.1-6.1                        ########################################
[   63s] Updating /etc/sysconfig/services ...
[   63s] libitm1-15.1.1+git10189-1.1           ########################################
[   63s] liblz1-1.15-1.1                       ########################################
[   63s] libmagic1-5.46-4.1                    ########################################
[   63s] librpmbuild10-4.20.1-6.1              ########################################
[   63s] liblz4-1-1.10.0-2.1                   ########################################
[   63s] libarchive13-3.8.1-1.1                ########################################
[   63s] libpkgconf5-2.2.0-1.1                 ########################################
[   63s] pkgconf-2.2.0-1.1                     ########################################
[   63s] pkgconf-pkg-config-2.2.0-1.1          ########################################
[   63s] libxcrypt-devel-4.4.38-1.1            ########################################
[   64s] glibc-devel-2.42-1.1                  ########################################
[   88s] gcc15-15.1.1+git10189-1.1             ########################################
[   88s] gcc15-PIE-15.1.1+git10189-1.1         ########################################
[   88s] gcc-15-1.1                            ########################################
[   88s] libseccomp2-2.6.0-2.1                 ########################################
[   88s] file-5.46-4.1                         ########################################
[   88s] libsmartcols1-2.41.1-3.1              ########################################
[   88s] util-linux-2.41.1-3.1                 ########################################
[   89s] patch-2.8-1.1                         ########################################
[   89s] which-2.23-1.1                        ########################################
[   89s] rpm-build-4.20.1-6.1                  ########################################
[   89s] build-compare-20240801T083050.024a3a7-########################################
[   89s] gcc-PIE-15-1.1                        ########################################
[   91s] rpmlint-mini-2.7.0+git20250710.a7f0a67########################################
[   91s] post-build-checks-84.87+git20250725.0c########################################
[   92s] python313-pytest-8.4.1-1.1            ########################################
[   94s] python313-Babel-2.17.0-2.1            ########################################
[   95s] python311-pytest-8.4.1-1.1            ########################################
[   98s] python311-Babel-2.17.0-2.1            ########################################
[   98s] python312-pytest-8.4.1-1.1            ########################################
[  101s] python312-Babel-2.17.0-2.1            ########################################
[  101s] python312-nine-1.2.0-1.2              ########################################
[  101s] python311-nine-1.2.0-1.2              ########################################
[  101s] python313-nine-1.2.0-1.2              ########################################
[  101s] compat-usrmerge-build-84.87-5.5       ########################################
[  101s] brp-check-suse-84.87+git20230324.8680c########################################
[  107s] qemu-linux-user-10.0.3-83.1           ########################################
[  108s] build-mkbaselibs-20250708-1.1         ########################################
[  108s] fdupes-2.4.0-1.1                      ########################################
[  109s] kernel-obs-build-6.16.1-1.1           ########################################
[  114s] now finalizing build dir...
[  114s] ... running 01-add_abuild_user_to_trusted_group
[  115s] ... running 02-set_timezone_to_utc
[  115s] ... running 03-set-permissions-secure
[  115s] ... running 11-hack_uname_version_to_kernel_version
[  118s] setting SOURCE_DATE_EPOCH_MTIME to 1630412390
[  125s] -----------------------------------------------------------------
[  125s] I have the following modifications for python-Kajiki.spec:
[  125s] 22c22
[  125s] < Release:        0
[  125s] ---
[  125s] > Release:        16.1
[  128s] build target is riscv64-suse-linux
[  129s] -----------------------------------------------------------------
[  129s] ----- building python-Kajiki.spec (user abuild)
[  129s] -----------------------------------------------------------------
[  129s] -----------------------------------------------------------------
[  132s] setting SOURCE_DATE_EPOCH_MTIME to 1630412390
[  133s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --target=riscv64-suse-linux --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:lalala123:RISCV_test1/standard/5a8c6285ea878458c60db6abfcfe2449-failed_python-Kajiki' /home/abuild/rpmbuild/SOURCES/python-Kajiki.spec
[  133s] Building target platforms: riscv64-suse-linux
[  133s] Building for target riscv64-suse-linux
[  162s] using SOURCE_DATE_EPOCH with value 1630412389 as build time
[  163s] Executing(%mkbuilddir): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.TxvpWd
[  163s] Executing(%prep): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.4x5U91
[  163s] + umask 022
[  163s] + cd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  163s] + cd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  163s] + rm -rf kajiki-0.8.3
[  163s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/kajiki-0.8.3.tar.gz
[  163s] + STATUS=0
[  163s] + '[' 0 -ne 0 ']'
[  163s] + cd kajiki-0.8.3
[  163s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[  163s] + sed -i 's/from nose import SkipTest/from unittest import SkipTest/' kajiki/tests/test_xml.py
[  163s] + RPM_EC=0
[  163s] ++ jobs -p
[  163s] + exit 0
[  163s] Executing(%build): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.NT60K0
[  164s] + umask 022
[  164s] + cd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  164s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT
[  164s] ++ dirname /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT
[  164s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  164s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT
[  164s] + cd kajiki-0.8.3
[  164s] + ref=/usr/lib/rpm
[  164s] + mints=0
[  164s] + case $(uname -m) in
[  164s] ++ uname -m
[  164s] + mints=20160911
[  164s] + for s in guess sub
[  164s] ++ find -maxdepth 8 -name config.guess
[  164s] + for s in guess sub
[  164s] ++ find -maxdepth 8 -name config.sub
[  164s] ++ '[' -f _current_flavor ']'
[  164s] ++ true
[  164s] + last_flavor=
[  164s] + '[' -z '' ']'
[  164s] + last_flavor=tmp
[  164s] + '[' tmp '!=' python311 ']'
[  164s] + '[' -d build ']'
[  164s] + '[' -d _build.python311 ']'
[  164s] + echo python311
[  164s] + python_flavor=python311
[  164s] + /usr/bin/python3.11 setup.py build '--executable=/usr/bin/python3.11 -s'
[  166s] /usr/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  166s] !!
[  166s] 
[  166s]         ********************************************************************************
[  166s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  166s] 
[  166s]         License :: OSI Approved :: MIT License
[  166s] 
[  166s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  166s]         ********************************************************************************
[  166s] 
[  166s] !!
[  166s]   self._finalize_license_expression()
[  166s] running build
[  166s] running build_py
[  166s] creating build/lib/kajiki
[  166s] copying kajiki/__init__.py -> build/lib/kajiki
[  166s] copying kajiki/__main__.py -> build/lib/kajiki
[  166s] copying kajiki/ddict.py -> build/lib/kajiki
[  166s] copying kajiki/doctype.py -> build/lib/kajiki
[  166s] copying kajiki/entities.py -> build/lib/kajiki
[  166s] copying kajiki/html_utils.py -> build/lib/kajiki
[  166s] copying kajiki/i18n.py -> build/lib/kajiki
[  166s] copying kajiki/ir.py -> build/lib/kajiki
[  166s] copying kajiki/lnotab.py -> build/lib/kajiki
[  166s] copying kajiki/loader.py -> build/lib/kajiki
[  166s] copying kajiki/markup_template.py -> build/lib/kajiki
[  166s] copying kajiki/template.py -> build/lib/kajiki
[  166s] copying kajiki/text.py -> build/lib/kajiki
[  166s] copying kajiki/util.py -> build/lib/kajiki
[  166s] copying kajiki/version.py -> build/lib/kajiki
[  166s] copying kajiki/xml_template.py -> build/lib/kajiki
[  166s] creating build/lib/kajiki/integration
[  166s] copying kajiki/integration/__init__.py -> build/lib/kajiki/integration
[  166s] copying kajiki/integration/pyramid.py -> build/lib/kajiki/integration
[  166s] copying kajiki/integration/turbogears1.py -> build/lib/kajiki/integration
[  166s] creating build/lib/kajiki/tests
[  166s] copying kajiki/tests/__init__.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_cli.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_doctype.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_ir.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_runtime.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_text.py -> build/lib/kajiki/tests
[  166s] copying kajiki/tests/test_xml.py -> build/lib/kajiki/tests
[  166s] creating build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/__init__.py -> build/lib/kajiki/tests/data
[  166s] running egg_info
[  166s] writing kajiki.egg-info/PKG-INFO
[  166s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  166s] writing entry points to kajiki.egg-info/entry_points.txt
[  166s] writing requirements to kajiki.egg-info/requires.txt
[  166s] writing top-level names to kajiki.egg-info/top_level.txt
[  166s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  166s] reading manifest template 'MANIFEST.in'
[  166s] no previously-included directories found matching 'kajiki/perf'
[  166s] no previously-included directories found matching 'docs/_build'
[  166s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  166s] adding license file 'LICENSE.rst'
[  166s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  166s] copying kajiki/tests/data/debug.html -> build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/debug.txt -> build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/error.html -> build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/file_child.html -> build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/file_parent.html -> build/lib/kajiki/tests/data
[  166s] copying kajiki/tests/data/simple.html -> build/lib/kajiki/tests/data
[  166s] ++ '[' -f _current_flavor ']'
[  166s] ++ cat _current_flavor
[  166s] + last_flavor=python311
[  166s] + '[' -z python311 ']'
[  166s] + '[' python311 '!=' python312 ']'
[  166s] + '[' -d build ']'
[  166s] + mv build _build.python311
[  166s] + '[' -d _build.python312 ']'
[  166s] + echo python312
[  166s] + python_flavor=python312
[  166s] + /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 -s'
[  169s] /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  169s] !!
[  169s] 
[  169s]         ********************************************************************************
[  169s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  169s] 
[  169s]         License :: OSI Approved :: MIT License
[  169s] 
[  169s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  169s]         ********************************************************************************
[  169s] 
[  169s] !!
[  169s]   self._finalize_license_expression()
[  169s] running build
[  169s] running build_py
[  169s] creating build/lib/kajiki
[  169s] copying kajiki/__init__.py -> build/lib/kajiki
[  169s] copying kajiki/__main__.py -> build/lib/kajiki
[  169s] copying kajiki/ddict.py -> build/lib/kajiki
[  169s] copying kajiki/doctype.py -> build/lib/kajiki
[  169s] copying kajiki/entities.py -> build/lib/kajiki
[  169s] copying kajiki/html_utils.py -> build/lib/kajiki
[  169s] copying kajiki/i18n.py -> build/lib/kajiki
[  169s] copying kajiki/ir.py -> build/lib/kajiki
[  169s] copying kajiki/lnotab.py -> build/lib/kajiki
[  169s] copying kajiki/loader.py -> build/lib/kajiki
[  169s] copying kajiki/markup_template.py -> build/lib/kajiki
[  169s] copying kajiki/template.py -> build/lib/kajiki
[  169s] copying kajiki/text.py -> build/lib/kajiki
[  169s] copying kajiki/util.py -> build/lib/kajiki
[  169s] copying kajiki/version.py -> build/lib/kajiki
[  169s] copying kajiki/xml_template.py -> build/lib/kajiki
[  169s] creating build/lib/kajiki/integration
[  169s] copying kajiki/integration/__init__.py -> build/lib/kajiki/integration
[  169s] copying kajiki/integration/pyramid.py -> build/lib/kajiki/integration
[  169s] copying kajiki/integration/turbogears1.py -> build/lib/kajiki/integration
[  169s] creating build/lib/kajiki/tests
[  169s] copying kajiki/tests/__init__.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_cli.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_doctype.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_ir.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_runtime.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_text.py -> build/lib/kajiki/tests
[  169s] copying kajiki/tests/test_xml.py -> build/lib/kajiki/tests
[  169s] creating build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/__init__.py -> build/lib/kajiki/tests/data
[  169s] running egg_info
[  169s] writing kajiki.egg-info/PKG-INFO
[  169s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  169s] writing entry points to kajiki.egg-info/entry_points.txt
[  169s] writing requirements to kajiki.egg-info/requires.txt
[  169s] writing top-level names to kajiki.egg-info/top_level.txt
[  169s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  169s] reading manifest template 'MANIFEST.in'
[  169s] no previously-included directories found matching 'kajiki/perf'
[  169s] no previously-included directories found matching 'docs/_build'
[  169s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  169s] adding license file 'LICENSE.rst'
[  169s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  169s] copying kajiki/tests/data/debug.html -> build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/debug.txt -> build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/error.html -> build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/file_child.html -> build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/file_parent.html -> build/lib/kajiki/tests/data
[  169s] copying kajiki/tests/data/simple.html -> build/lib/kajiki/tests/data
[  169s] ++ '[' -f _current_flavor ']'
[  169s] ++ cat _current_flavor
[  169s] + last_flavor=python312
[  169s] + '[' -z python312 ']'
[  169s] + '[' python312 '!=' python313 ']'
[  169s] + '[' -d build ']'
[  169s] + mv build _build.python312
[  169s] + '[' -d _build.python313 ']'
[  169s] + echo python313
[  169s] + python_flavor=python313
[  169s] + /usr/bin/python3.13 setup.py build '--executable=/usr/bin/python3.13 -s'
[  171s] /usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  171s] !!
[  171s] 
[  171s]         ********************************************************************************
[  171s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  171s] 
[  171s]         License :: OSI Approved :: MIT License
[  171s] 
[  171s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  171s]         ********************************************************************************
[  171s] 
[  171s] !!
[  171s]   self._finalize_license_expression()
[  172s] running build
[  172s] running build_py
[  172s] creating build/lib/kajiki
[  172s] copying kajiki/__init__.py -> build/lib/kajiki
[  172s] copying kajiki/__main__.py -> build/lib/kajiki
[  172s] copying kajiki/ddict.py -> build/lib/kajiki
[  172s] copying kajiki/doctype.py -> build/lib/kajiki
[  172s] copying kajiki/entities.py -> build/lib/kajiki
[  172s] copying kajiki/html_utils.py -> build/lib/kajiki
[  172s] copying kajiki/i18n.py -> build/lib/kajiki
[  172s] copying kajiki/ir.py -> build/lib/kajiki
[  172s] copying kajiki/lnotab.py -> build/lib/kajiki
[  172s] copying kajiki/loader.py -> build/lib/kajiki
[  172s] copying kajiki/markup_template.py -> build/lib/kajiki
[  172s] copying kajiki/template.py -> build/lib/kajiki
[  172s] copying kajiki/text.py -> build/lib/kajiki
[  172s] copying kajiki/util.py -> build/lib/kajiki
[  172s] copying kajiki/version.py -> build/lib/kajiki
[  172s] copying kajiki/xml_template.py -> build/lib/kajiki
[  172s] creating build/lib/kajiki/integration
[  172s] copying kajiki/integration/__init__.py -> build/lib/kajiki/integration
[  172s] copying kajiki/integration/pyramid.py -> build/lib/kajiki/integration
[  172s] copying kajiki/integration/turbogears1.py -> build/lib/kajiki/integration
[  172s] creating build/lib/kajiki/tests
[  172s] copying kajiki/tests/__init__.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_cli.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_doctype.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_ir.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_runtime.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_text.py -> build/lib/kajiki/tests
[  172s] copying kajiki/tests/test_xml.py -> build/lib/kajiki/tests
[  172s] creating build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/__init__.py -> build/lib/kajiki/tests/data
[  172s] running egg_info
[  172s] writing kajiki.egg-info/PKG-INFO
[  172s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  172s] writing entry points to kajiki.egg-info/entry_points.txt
[  172s] writing requirements to kajiki.egg-info/requires.txt
[  172s] writing top-level names to kajiki.egg-info/top_level.txt
[  172s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  172s] reading manifest template 'MANIFEST.in'
[  172s] no previously-included directories found matching 'kajiki/perf'
[  172s] no previously-included directories found matching 'docs/_build'
[  172s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  172s] adding license file 'LICENSE.rst'
[  172s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  172s] copying kajiki/tests/data/debug.html -> build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/debug.txt -> build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/error.html -> build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/file_child.html -> build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/file_parent.html -> build/lib/kajiki/tests/data
[  172s] copying kajiki/tests/data/simple.html -> build/lib/kajiki/tests/data
[  172s] + RPM_EC=0
[  172s] ++ jobs -p
[  172s] + exit 0
[  172s] Executing(%install): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.grCuJg
[  172s] + umask 022
[  172s] + cd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  172s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT
[  172s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  172s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT
[  172s] + cd kajiki-0.8.3
[  172s] ++ '[' -f _current_flavor ']'
[  172s] ++ cat _current_flavor
[  172s] + last_flavor=python313
[  172s] + '[' -z python313 ']'
[  172s] + '[' python313 '!=' python311 ']'
[  172s] + '[' -d build ']'
[  172s] + mv build _build.python313
[  172s] + '[' -d _build.python311 ']'
[  172s] + mv _build.python311 build
[  172s] + echo python311
[  172s] + python_flavor=python311
[  172s] + myargs=
[  172s] + /usr/bin/python3.11 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT --prefix /usr
[  174s] /usr/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  174s] !!
[  174s] 
[  174s]         ********************************************************************************
[  174s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  174s] 
[  174s]         License :: OSI Approved :: MIT License
[  174s] 
[  174s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  174s]         ********************************************************************************
[  174s] 
[  174s] !!
[  174s]   self._finalize_license_expression()
[  174s] running install
[  174s] /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[  174s] !!
[  174s] 
[  174s]         ********************************************************************************
[  174s]         Please avoid running ``setup.py`` directly.
[  174s]         Instead, use pypa/build, pypa/installer or other
[  174s]         standards-based tools.
[  174s] 
[  174s]         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[  174s]         ********************************************************************************
[  174s] 
[  174s] !!
[  174s]   self.initialize_options()
[  174s] running install_lib
[  174s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages
[  174s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/__main__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/ddict.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/entities.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/html_utils.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/i18n.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/lnotab.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/loader.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/markup_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/util.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/version.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] copying build/lib/kajiki/xml_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki
[  174s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration
[  174s] copying build/lib/kajiki/integration/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration
[  174s] copying build/lib/kajiki/integration/pyramid.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration
[  174s] copying build/lib/kajiki/integration/turbogears1.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration
[  174s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_cli.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_runtime.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] copying build/lib/kajiki/tests/test_xml.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  174s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/debug.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/debug.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/error.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/file_child.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/file_parent.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] copying build/lib/kajiki/tests/data/simple.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data
[  174s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__init__.py to __init__.cpython-311.pyc
[  174s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__main__.py to __main__.cpython-311.pyc
[  174s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/ddict.py to ddict.cpython-311.pyc
[  174s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/doctype.py to doctype.cpython-311.pyc
[  174s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/entities.py to entities.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/html_utils.py to html_utils.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/i18n.py to i18n.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/ir.py to ir.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/lnotab.py to lnotab.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/loader.py to loader.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/markup_template.py to markup_template.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/template.py to template.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/text.py to text.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/util.py to util.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/version.py to version.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/xml_template.py to xml_template.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__init__.py to __init__.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/pyramid.py to pyramid.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/turbogears1.py to turbogears1.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/__init__.py to __init__.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_cli.py to test_cli.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_doctype.py to test_doctype.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_ir.py to test_ir.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_runtime.py to test_runtime.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_text.py to test_text.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/test_xml.py to test_xml.cpython-311.pyc
[  175s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests/data/__init__.py to __init__.cpython-311.pyc
[  175s] writing byte-compilation script '/tmp/tmp6t5gw2ka.py'
[  175s] /usr/bin/python3.11 /tmp/tmp6t5gw2ka.py
[  177s] removing /tmp/tmp6t5gw2ka.py
[  177s] running install_egg_info
[  177s] running egg_info
[  177s] writing kajiki.egg-info/PKG-INFO
[  177s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  177s] writing entry points to kajiki.egg-info/entry_points.txt
[  177s] writing requirements to kajiki.egg-info/requires.txt
[  177s] writing top-level names to kajiki.egg-info/top_level.txt
[  178s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  178s] reading manifest template 'MANIFEST.in'
[  178s] no previously-included directories found matching 'kajiki/perf'
[  178s] no previously-included directories found matching 'docs/_build'
[  178s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  178s] adding license file 'LICENSE.rst'
[  178s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  178s] Copying kajiki.egg-info to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki-0.8.3-py3.11.egg-info
[  178s] running install_scripts
[  178s] Installing kajiki script to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  178s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.11/site-packages
[  178s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages ']'
[  178s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages -iname '*.pyc' -delete
[  178s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages -iname '*.py' -print0
[  178s] + xargs -0 /usr/bin/python3.11 -c $' \nimport sys, py_compile \nfor f in sys.argv[1:]: \n  fp=f[len("/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT"):] \n  print("Generating cached byte-code for " + str(fp)) \n  if sys.version[0] == "2": \n    py_compile.compile(f, dfile=fp) \n  else: \n    for o in [0, 1]: \n      py_compile.compile(f, dfile=fp, optimize=o) \n'
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/__init__.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/__main__.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/ddict.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/doctype.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/entities.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/html_utils.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/i18n.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/ir.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/lnotab.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/loader.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/markup_template.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/template.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/text.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/util.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/version.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/xml_template.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/integration/__init__.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/integration/pyramid.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/integration/turbogears1.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/__init__.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_cli.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_doctype.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_ir.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_runtime.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_text.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/test_xml.py
[  179s] Generating cached byte-code for /usr/lib/python3.11/site-packages/kajiki/tests/data/__init__.py
[  180s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.11/site-packages
[  180s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.11/site-packages ']'
[  180s] + myargs='/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*'
[  180s] + for f in ${myargs}
[  180s] + '[' -f /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -x /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -w /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki ']'
[  180s] ++ dirname /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  180s] + pushd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  180s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  180s] ++ realpath /usr/bin/python3.11
[  180s] ++ basename /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  180s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.11@' kajiki
[  180s] + popd
[  180s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  180s] + for f in ${myargs}
[  180s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' ']'
[  180s] ++ '[' -f _current_flavor ']'
[  180s] ++ cat _current_flavor
[  180s] + last_flavor=python311
[  180s] + '[' -z python311 ']'
[  180s] + '[' python311 '!=' python312 ']'
[  180s] + '[' -d build ']'
[  180s] + mv build _build.python311
[  180s] + '[' -d _build.python312 ']'
[  180s] + mv _build.python312 build
[  180s] + echo python312
[  180s] + python_flavor=python312
[  180s] + myargs=
[  180s] + /usr/bin/python3.12 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT --prefix /usr
[  182s] /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  182s] !!
[  182s] 
[  182s]         ********************************************************************************
[  182s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  182s] 
[  182s]         License :: OSI Approved :: MIT License
[  182s] 
[  182s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  182s]         ********************************************************************************
[  182s] 
[  182s] !!
[  182s]   self._finalize_license_expression()
[  182s] running install
[  182s] /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[  182s] !!
[  182s] 
[  182s]         ********************************************************************************
[  182s]         Please avoid running ``setup.py`` directly.
[  182s]         Instead, use pypa/build, pypa/installer or other
[  182s]         standards-based tools.
[  182s] 
[  182s]         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[  182s]         ********************************************************************************
[  182s] 
[  182s] !!
[  182s]   self.initialize_options()
[  182s] running install_lib
[  182s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages
[  182s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/__main__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/ddict.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/entities.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/html_utils.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/i18n.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/lnotab.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/loader.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/markup_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/util.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/version.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] copying build/lib/kajiki/xml_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki
[  182s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration
[  182s] copying build/lib/kajiki/integration/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration
[  182s] copying build/lib/kajiki/integration/pyramid.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration
[  182s] copying build/lib/kajiki/integration/turbogears1.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration
[  182s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_cli.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_runtime.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] copying build/lib/kajiki/tests/test_xml.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  182s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/debug.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/debug.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/error.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/file_child.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/file_parent.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  182s] copying build/lib/kajiki/tests/data/simple.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__init__.py to __init__.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__main__.py to __main__.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/ddict.py to ddict.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/doctype.py to doctype.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/entities.py to entities.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/html_utils.py to html_utils.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/i18n.py to i18n.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/ir.py to ir.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/lnotab.py to lnotab.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/loader.py to loader.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/markup_template.py to markup_template.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/template.py to template.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/text.py to text.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/util.py to util.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/version.py to version.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/xml_template.py to xml_template.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__init__.py to __init__.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/pyramid.py to pyramid.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/turbogears1.py to turbogears1.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/__init__.py to __init__.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_cli.py to test_cli.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_doctype.py to test_doctype.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_ir.py to test_ir.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_runtime.py to test_runtime.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_text.py to test_text.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/test_xml.py to test_xml.cpython-312.pyc
[  183s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests/data/__init__.py to __init__.cpython-312.pyc
[  183s] writing byte-compilation script '/tmp/tmpk65r_ihg.py'
[  183s] /usr/bin/python3.12 /tmp/tmpk65r_ihg.py
[  186s] removing /tmp/tmpk65r_ihg.py
[  186s] running install_egg_info
[  186s] running egg_info
[  186s] writing kajiki.egg-info/PKG-INFO
[  186s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  186s] writing entry points to kajiki.egg-info/entry_points.txt
[  186s] writing requirements to kajiki.egg-info/requires.txt
[  186s] writing top-level names to kajiki.egg-info/top_level.txt
[  186s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  186s] reading manifest template 'MANIFEST.in'
[  186s] no previously-included directories found matching 'kajiki/perf'
[  186s] no previously-included directories found matching 'docs/_build'
[  186s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  186s] adding license file 'LICENSE.rst'
[  186s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  186s] Copying kajiki.egg-info to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki-0.8.3-py3.12.egg-info
[  186s] running install_scripts
[  187s] Installing kajiki script to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  187s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.12/site-packages
[  187s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages ']'
[  187s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages -iname '*.pyc' -delete
[  187s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages -iname '*.py' -print0
[  187s] + xargs -0 /usr/bin/python3.12 -c $' \nimport sys, py_compile \nfor f in sys.argv[1:]: \n  fp=f[len("/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT"):] \n  print("Generating cached byte-code for " + str(fp)) \n  if sys.version[0] == "2": \n    py_compile.compile(f, dfile=fp) \n  else: \n    for o in [0, 1]: \n      py_compile.compile(f, dfile=fp, optimize=o) \n'
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/__init__.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/__main__.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/ddict.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/doctype.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/entities.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/html_utils.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/i18n.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/ir.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/lnotab.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/loader.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/markup_template.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/template.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/text.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/util.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/version.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/xml_template.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/integration/__init__.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/integration/pyramid.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/integration/turbogears1.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/__init__.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_cli.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_doctype.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_ir.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_runtime.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_text.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/test_xml.py
[  189s] Generating cached byte-code for /usr/lib/python3.12/site-packages/kajiki/tests/data/__init__.py
[  189s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.12/site-packages
[  189s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.12/site-packages ']'
[  189s] + myargs='/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*'
[  189s] + for f in ${myargs}
[  189s] + '[' -f /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -x /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -w /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki ']'
[  189s] ++ dirname /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  189s] + pushd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  189s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  189s] ++ realpath /usr/bin/python3.12
[  189s] ++ basename /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  189s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.12@' kajiki
[  189s] + popd
[  189s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  189s] + for f in ${myargs}
[  189s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' ']'
[  189s] ++ '[' -f _current_flavor ']'
[  189s] ++ cat _current_flavor
[  189s] + last_flavor=python312
[  189s] + '[' -z python312 ']'
[  189s] + '[' python312 '!=' python313 ']'
[  189s] + '[' -d build ']'
[  189s] + mv build _build.python312
[  189s] + '[' -d _build.python313 ']'
[  189s] + mv _build.python313 build
[  189s] + echo python313
[  189s] + python_flavor=python313
[  189s] + myargs=
[  189s] + /usr/bin/python3.13 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT --prefix /usr
[  191s] /usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[  191s] !!
[  191s] 
[  191s]         ********************************************************************************
[  191s]         Please consider removing the following classifiers in favor of a SPDX license expression:
[  191s] 
[  191s]         License :: OSI Approved :: MIT License
[  191s] 
[  191s]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[  191s]         ********************************************************************************
[  191s] 
[  191s] !!
[  191s]   self._finalize_license_expression()
[  191s] running install
[  191s] /usr/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[  191s] !!
[  191s] 
[  191s]         ********************************************************************************
[  191s]         Please avoid running ``setup.py`` directly.
[  191s]         Instead, use pypa/build, pypa/installer or other
[  191s]         standards-based tools.
[  191s] 
[  191s]         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[  191s]         ********************************************************************************
[  191s] 
[  191s] !!
[  191s]   self.initialize_options()
[  191s] running install_lib
[  191s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages
[  191s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/__main__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/ddict.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/entities.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/html_utils.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/i18n.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/lnotab.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/loader.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/markup_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/util.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/version.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] copying build/lib/kajiki/xml_template.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki
[  191s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration
[  191s] copying build/lib/kajiki/integration/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration
[  191s] copying build/lib/kajiki/integration/pyramid.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration
[  191s] copying build/lib/kajiki/integration/turbogears1.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration
[  191s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_cli.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_doctype.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_ir.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_runtime.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_text.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] copying build/lib/kajiki/tests/test_xml.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  191s] creating /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/__init__.py -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/debug.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/debug.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/error.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/file_child.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/file_parent.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] copying build/lib/kajiki/tests/data/simple.html -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data
[  191s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__init__.py to __init__.cpython-313.pyc
[  191s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__main__.py to __main__.cpython-313.pyc
[  191s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/ddict.py to ddict.cpython-313.pyc
[  191s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/doctype.py to doctype.cpython-313.pyc
[  191s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/entities.py to entities.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/html_utils.py to html_utils.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/i18n.py to i18n.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/ir.py to ir.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/lnotab.py to lnotab.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/loader.py to loader.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/markup_template.py to markup_template.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/template.py to template.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/text.py to text.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/util.py to util.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/version.py to version.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/xml_template.py to xml_template.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__init__.py to __init__.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/pyramid.py to pyramid.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/turbogears1.py to turbogears1.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/__init__.py to __init__.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_cli.py to test_cli.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_doctype.py to test_doctype.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_ir.py to test_ir.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_runtime.py to test_runtime.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_text.py to test_text.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/test_xml.py to test_xml.cpython-313.pyc
[  192s] byte-compiling /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests/data/__init__.py to __init__.cpython-313.pyc
[  192s] writing byte-compilation script '/tmp/tmpuejw0ncr.py'
[  192s] /usr/bin/python3.13 /tmp/tmpuejw0ncr.py
[  195s] removing /tmp/tmpuejw0ncr.py
[  195s] running install_egg_info
[  195s] running egg_info
[  195s] writing kajiki.egg-info/PKG-INFO
[  195s] writing dependency_links to kajiki.egg-info/dependency_links.txt
[  195s] writing entry points to kajiki.egg-info/entry_points.txt
[  195s] writing requirements to kajiki.egg-info/requires.txt
[  195s] writing top-level names to kajiki.egg-info/top_level.txt
[  195s] reading manifest file 'kajiki.egg-info/SOURCES.txt'
[  195s] reading manifest template 'MANIFEST.in'
[  195s] no previously-included directories found matching 'kajiki/perf'
[  195s] no previously-included directories found matching 'docs/_build'
[  195s] warning: no previously-included files matching '*.pyc' found anywhere in distribution
[  195s] adding license file 'LICENSE.rst'
[  195s] writing manifest file 'kajiki.egg-info/SOURCES.txt'
[  195s] Copying kajiki.egg-info to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki-0.8.3-py3.13.egg-info
[  195s] running install_scripts
[  195s] Installing kajiki script to /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  195s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.13/site-packages
[  195s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages ']'
[  195s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages -iname '*.pyc' -delete
[  196s] + find /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages -iname '*.py' -print0
[  196s] + xargs -0 /usr/bin/python3.13 -c $' \nimport sys, py_compile \nfor f in sys.argv[1:]: \n  fp=f[len("/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT"):] \n  print("Generating cached byte-code for " + str(fp)) \n  if sys.version[0] == "2": \n    py_compile.compile(f, dfile=fp) \n  else: \n    for o in [0, 1]: \n      py_compile.compile(f, dfile=fp, optimize=o) \n'
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/__init__.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/__main__.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/ddict.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/doctype.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/entities.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/html_utils.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/i18n.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/ir.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/lnotab.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/loader.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/markup_template.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/template.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/text.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/util.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/version.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/xml_template.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/integration/__init__.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/integration/pyramid.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/integration/turbogears1.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/__init__.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_cli.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_doctype.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_ir.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_runtime.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_text.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/test_xml.py
[  197s] Generating cached byte-code for /usr/lib/python3.13/site-packages/kajiki/tests/data/__init__.py
[  197s] + for d in /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.13/site-packages
[  197s] + '[' -d /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib64/python3.13/site-packages ']'
[  197s] + myargs='/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*'
[  197s] + for f in ${myargs}
[  197s] + '[' -f /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -x /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki -a -w /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki ']'
[  197s] ++ dirname /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  197s] + pushd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin
[  197s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  197s] ++ realpath /usr/bin/python3.13
[  197s] ++ basename /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  197s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.13@' kajiki
[  197s] + popd
[  197s] ~/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  197s] + for f in ${myargs}
[  197s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/sbin/*' ']'
[  197s] + cp /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.11
[  198s] ++ realpath /usr/bin/python3.11
[  198s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.11@' /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.11
[  198s] + cp /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.12
[  198s] ++ realpath /usr/bin/python3.12
[  198s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.12@' /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.12
[  198s] + cp /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.13
[  198s] ++ realpath /usr/bin/python3.13
[  198s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.13@' /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki-3.13
[  198s] + rm -f /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  198s] + alternative_target=/usr/bin/kajiki
[  198s] + [[ /usr/bin/kajiki == /usr/share/man* ]]
[  198s] + '[' 0 -eq 1 ']'
[  198s] + mkdir -p /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/etc/alternatives
[  198s] + touch /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/etc/alternatives/kajiki
[  198s] + ln -sf /etc/alternatives/kajiki /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/bin/kajiki
[  198s] ++ '[' -f _current_flavor ']'
[  198s] ++ cat _current_flavor
[  198s] + last_flavor=python313
[  198s] + '[' -z python313 ']'
[  198s] + '[' python313 '!=' python311 ']'
[  198s] + '[' -d build ']'
[  198s] + mv build _build.python313
[  198s] + '[' -d _build.python311 ']'
[  198s] + mv _build.python311 build
[  198s] + echo python311
[  198s] + python_flavor=python311
[  198s] + rm -r /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/tests
[  198s] ++ '[' -f _current_flavor ']'
[  198s] ++ cat _current_flavor
[  198s] + last_flavor=python311
[  198s] + '[' -z python311 ']'
[  198s] + '[' python311 '!=' python312 ']'
[  198s] + '[' -d build ']'
[  198s] + mv build _build.python311
[  198s] + '[' -d _build.python312 ']'
[  198s] + mv _build.python312 build
[  198s] + echo python312
[  198s] + python_flavor=python312
[  198s] + rm -r /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/tests
[  198s] ++ '[' -f _current_flavor ']'
[  198s] ++ cat _current_flavor
[  198s] + last_flavor=python312
[  198s] + '[' -z python312 ']'
[  198s] + '[' python312 '!=' python313 ']'
[  198s] + '[' -d build ']'
[  198s] + mv build _build.python312
[  198s] + '[' -d _build.python313 ']'
[  198s] + mv _build.python313 build
[  199s] + echo python313
[  199s] + python_flavor=python313
[  199s] + rm -r /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/tests
[  199s] ++ '[' -f _current_flavor ']'
[  199s] ++ cat _current_flavor
[  199s] + last_flavor=python313
[  199s] + '[' -z python313 ']'
[  199s] + '[' python313 '!=' python311 ']'
[  199s] + '[' -d build ']'
[  199s] + mv build _build.python313
[  199s] + '[' -d _build.python311 ']'
[  199s] + mv _build.python311 build
[  199s] + echo python311
[  199s] + python_flavor=python311
[  199s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki-0.8.3-py3.11.egg-info/dependency_links.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki-0.8.3-py3.11.egg-info/not-zip-safe
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/version.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/version.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/util.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/util.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/template.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/template.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/markup_template.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/markup_template.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/loader.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/loader.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/i18n.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/i18n.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/html_utils.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/html_utils.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/entities.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/entities.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/ddict.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/ddict.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/__main__.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/__main__.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/__init__.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/__pycache__/__init__.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/pyramid.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/pyramid.cpython-311.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/__init__.cpython-311.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages/kajiki/integration/__pycache__/__init__.cpython-311.pyc
[  199s] ++ '[' -f _current_flavor ']'
[  199s] ++ cat _current_flavor
[  199s] + last_flavor=python311
[  199s] + '[' -z python311 ']'
[  199s] + '[' python311 '!=' python312 ']'
[  199s] + '[' -d build ']'
[  199s] + mv build _build.python311
[  199s] + '[' -d _build.python312 ']'
[  199s] + mv _build.python312 build
[  199s] + echo python312
[  199s] + python_flavor=python312
[  199s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki-0.8.3-py3.12.egg-info/dependency_links.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki-0.8.3-py3.12.egg-info/not-zip-safe
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/version.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/version.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/util.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/util.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/template.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/template.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/markup_template.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/markup_template.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/loader.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/loader.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/i18n.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/i18n.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/html_utils.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/html_utils.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/entities.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/entities.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/ddict.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/ddict.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/__main__.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/__main__.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/__init__.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/__pycache__/__init__.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/pyramid.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/pyramid.cpython-312.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/__init__.cpython-312.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.12/site-packages/kajiki/integration/__pycache__/__init__.cpython-312.pyc
[  199s] ++ '[' -f _current_flavor ']'
[  199s] ++ cat _current_flavor
[  199s] + last_flavor=python312
[  199s] + '[' -z python312 ']'
[  199s] + '[' python312 '!=' python313 ']'
[  199s] + '[' -d build ']'
[  199s] + mv build _build.python312
[  199s] + '[' -d _build.python313 ']'
[  199s] + mv _build.python313 build
[  199s] + echo python313
[  199s] + python_flavor=python313
[  199s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki-0.8.3-py3.13.egg-info/dependency_links.txt -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki-0.8.3-py3.13.egg-info/not-zip-safe
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/version.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/version.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/util.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/util.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/template.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/template.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/markup_template.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/markup_template.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/loader.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/loader.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/i18n.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/i18n.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/html_utils.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/html_utils.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/entities.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/entities.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/ddict.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/ddict.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/__main__.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/__main__.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/__init__.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/__pycache__/__init__.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/turbogears1.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/pyramid.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/pyramid.cpython-313.pyc
[  199s] Linking /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/__init__.cpython-313.opt-1.pyc -> /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.13/site-packages/kajiki/integration/__pycache__/__init__.cpython-313.pyc
[  199s] + /usr/lib/rpm/brp-compress
[  199s] + /usr/lib/rpm/brp-suse
[  200s] calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
[  200s] calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
[  200s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
[  200s] calling /usr/lib/rpm/brp-suse.d/brp-50-generate-fips-hmac
[  200s] calling /usr/lib/rpm/brp-suse.d/brp-75-ar
[  200s] Executing(%check): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.KDFaRW
[  201s] + umask 022
[  201s] + cd /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build
[  201s] + cd kajiki-0.8.3
[  201s] + set +x
[  201s] Using libalternatives variant 311 for py.test in XDG_CONFIG_HOME during Python 3.11 expansions.
[  201s] Using libalternatives variant 311 for pybabel in XDG_CONFIG_HOME during Python 3.11 expansions.
[  201s] Using libalternatives variant 311 for pygmentize in XDG_CONFIG_HOME during Python 3.11 expansions.
[  201s] Using libalternatives variant 311 for pytest in XDG_CONFIG_HOME during Python 3.11 expansions.
[  202s] Using alternative kajiki-3.11 for kajiki in ./build/flavorbin during Python 3.11 expansions.
[  202s] Using libalternatives variant 312 for py.test in XDG_CONFIG_HOME during Python 3.12 expansions.
[  202s] Using libalternatives variant 312 for pybabel in XDG_CONFIG_HOME during Python 3.12 expansions.
[  202s] Using libalternatives variant 312 for pygmentize in XDG_CONFIG_HOME during Python 3.12 expansions.
[  202s] Using libalternatives variant 312 for pytest in XDG_CONFIG_HOME during Python 3.12 expansions.
[  203s] Using alternative kajiki-3.12 for kajiki in ./build/flavorbin during Python 3.12 expansions.
[  203s] Using alternative kajiki-3.13 for kajiki in ./build/flavorbin during Python 3.13 expansions.
[  203s] + export PATH=/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/build/flavorbin:/usr/local/bin:/usr/bin:/bin
[  203s] + PATH=/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/build/flavorbin:/usr/local/bin:/usr/bin:/bin
[  203s] ++ '[' -f _current_flavor ']'
[  203s] ++ cat _current_flavor
[  203s] + last_flavor=python313
[  203s] + '[' -z python313 ']'
[  203s] + '[' python313 '!=' python311 ']'
[  203s] + '[' -d build ']'
[  203s] + mv build _build.python313
[  203s] + '[' -d _build.python311 ']'
[  203s] + mv _build.python311 build
[  204s] + echo python311
[  204s] + python_flavor=python311
[  204s] + PYTHONPATH=/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/BUILDROOT/usr/lib/python3.11/site-packages
[  204s] + PYTHONDONTWRITEBYTECODE=1
[  204s] + pytest-3.11 --ignore=_build.python311 --ignore=_build.python312 --ignore=_build.python313 -v
[  205s] ============================= test session starts ==============================
[  205s] platform linux -- Python 3.11.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/bin/python3.11
[  205s] cachedir: .pytest_cache
[  205s] rootdir: /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3
[  208s] collecting ... collected 147 items
[  208s] 
[  208s] kajiki/tests/test_cli.py::TestCLI::test_output_to_file PASSED            [  0%]
[  208s] kajiki/tests/test_cli.py::TestCLI::test_package_loader_site_dirs PASSED  [  1%]
[  208s] kajiki/tests/test_cli.py::TestCLI::test_simple_file_load PASSED          [  2%]
[  208s] kajiki/tests/test_cli.py::TestCLI::test_simple_package_load PASSED       [  2%]
[  208s] kajiki/tests/test_cli.py::TestCLI::test_template_variables PASSED        [  3%]
[  208s] kajiki/tests/test_doctype.py::TestDTD::test_dtd PASSED                   [  4%]
[  208s] kajiki/tests/test_doctype.py::TestDTD::test_extract_dtd PASSED           [  4%]
[  209s] kajiki/tests/test_ir.py::TestBasic::test FAILED                          [  5%]
[  209s] kajiki/tests/test_ir.py::TestSwitch::test_basic FAILED                   [  6%]
[  209s] kajiki/tests/test_ir.py::TestFunction::test_basic FAILED                 [  6%]
[  209s] kajiki/tests/test_ir.py::TestCall::test_basic FAILED                     [  7%]
[  209s] kajiki/tests/test_ir.py::TestImport::test_import FAILED                  [  8%]
[  210s] kajiki/tests/test_ir.py::TestInclude::test_include FAILED                [  8%]
[  210s] kajiki/tests/test_ir.py::TestExtends::test_extends FAILED                [  9%]
[  210s] kajiki/tests/test_ir.py::TestDynamicExtends::test_extends FAILED         [ 10%]
[  210s] kajiki/tests/test_runtime.py::TestBasic::test_basic PASSED               [ 10%]
[  210s] kajiki/tests/test_runtime.py::TestSwitch::test_basic PASSED              [ 11%]
[  210s] kajiki/tests/test_runtime.py::TestFunction::test_basic PASSED            [ 12%]
[  210s] kajiki/tests/test_runtime.py::TestCall::test_basic PASSED                [ 12%]
[  210s] kajiki/tests/test_runtime.py::TestImport::test_import PASSED             [ 13%]
[  210s] kajiki/tests/test_runtime.py::TestInclude::test_include PASSED           [ 14%]
[  210s] kajiki/tests/test_runtime.py::TestExtends::test_extends PASSED           [ 14%]
[  210s] kajiki/tests/test_runtime.py::TestDynamicExtends::test_extends PASSED    [ 15%]
[  210s] kajiki/tests/test_text.py::TestBasic::test_auto_escape FAILED            [ 16%]
[  211s] kajiki/tests/test_text.py::TestBasic::test_auto_escape_disable FAILED    [ 17%]
[  211s] kajiki/tests/test_text.py::TestBasic::test_expr_None FAILED              [ 17%]
[  211s] kajiki/tests/test_text.py::TestBasic::test_expr_brace FAILED             [ 18%]
[  211s] kajiki/tests/test_text.py::TestBasic::test_expr_brace_complex FAILED     [ 19%]
[  212s] kajiki/tests/test_text.py::TestBasic::test_expr_multiline FAILED         [ 19%]
[  212s] kajiki/tests/test_text.py::TestBasic::test_expr_name FAILED              [ 20%]
[  212s] kajiki/tests/test_text.py::TestSwitch::test_ljust FAILED                 [ 21%]
[  212s] kajiki/tests/test_text.py::TestSwitch::test_rstrip FAILED                [ 21%]
[  213s] kajiki/tests/test_text.py::TestSwitch::test_switch FAILED                [ 22%]
[  213s] kajiki/tests/test_text.py::TestFunction::test_function FAILED            [ 23%]
[  213s] kajiki/tests/test_text.py::TestCall::test_call FAILED                    [ 23%]
[  214s] kajiki/tests/test_text.py::TestImport::test_import_auto FAILED           [ 24%]
[  214s] kajiki/tests/test_text.py::TestImport::test_import_simple FAILED         [ 25%]
[  214s] kajiki/tests/test_text.py::TestImport::test_include FAILED               [ 25%]
[  214s] kajiki/tests/test_text.py::TestExtends::test_basic FAILED                [ 26%]
[  215s] kajiki/tests/test_text.py::TestExtends::test_block FAILED                [ 27%]
[  215s] kajiki/tests/test_text.py::TestExtends::test_dynamic FAILED              [ 27%]
[  215s] kajiki/tests/test_text.py::TestClosure::test FAILED                      [ 28%]
[  215s] kajiki/tests/test_text.py::TestPython::test_basic FAILED                 [ 29%]
[  216s] kajiki/tests/test_text.py::TestPython::test_indent FAILED                [ 29%]
[  216s] kajiki/tests/test_text.py::TestPython::test_mod FAILED                   [ 30%]
[  216s] kajiki/tests/test_text.py::TestPython::test_short FAILED                 [ 31%]
[  216s] kajiki/tests/test_text.py::TestDebug::test_debug FAILED                  [ 31%]
[  216s] kajiki/tests/test_xml.py::TestParser::test_parser PASSED                 [ 32%]
[  216s] kajiki/tests/test_xml.py::TestExpand::test_expand PASSED                 [ 33%]
[  217s] kajiki/tests/test_xml.py::TestSimple::test_CDATA_disabled FAILED         [ 34%]
[  217s] kajiki/tests/test_xml.py::TestSimple::test_CDATA_escaping FAILED         [ 34%]
[  218s] kajiki/tests/test_xml.py::TestSimple::test_CDATA_escaping_mixed FAILED   [ 35%]
[  218s] kajiki/tests/test_xml.py::TestSimple::test_double_escape_dollar FAILED   [ 36%]
[  219s] kajiki/tests/test_xml.py::TestSimple::test_empty_attr FAILED             [ 36%]
[  219s] kajiki/tests/test_xml.py::TestSimple::test_escape_dollar FAILED          [ 37%]
[  220s] kajiki/tests/test_xml.py::TestSimple::test_escape_dollar_followed_by_dollar FAILED [ 38%]
[  220s] kajiki/tests/test_xml.py::TestSimple::test_expr_brace_complex FAILED     [ 38%]
[  221s] kajiki/tests/test_xml.py::TestSimple::test_expr_braced FAILED            [ 39%]
[  221s] kajiki/tests/test_xml.py::TestSimple::test_expr_multiline FAILED         [ 40%]
[  221s] kajiki/tests/test_xml.py::TestSimple::test_expr_multiline_and_IndentationError PASSED [ 40%]
[  222s] kajiki/tests/test_xml.py::TestSimple::test_expr_multiline_cdata FAILED   [ 41%]
[  222s] kajiki/tests/test_xml.py::TestSimple::test_expr_name FAILED              [ 42%]
[  223s] kajiki/tests/test_xml.py::TestSimple::test_html_entities FAILED          [ 42%]
[  223s] kajiki/tests/test_xml.py::TestSimple::test_jquery_call_is_not_expr FAILED [ 43%]
[  223s] kajiki/tests/test_xml.py::TestSimple::test_jquery_shortcut_is_not_expr FAILED [ 44%]
[  224s] kajiki/tests/test_xml.py::TestSimple::test_pre_whitespace FAILED         [ 44%]
[  224s] kajiki/tests/test_xml.py::TestSimple::test_preserve_dollar_not_variable_brace FAILED [ 45%]
[  225s] kajiki/tests/test_xml.py::TestSimple::test_script FAILED                 [ 46%]
[  225s] kajiki/tests/test_xml.py::TestSimple::test_script_commented_CDATA FAILED [ 46%]
[  226s] kajiki/tests/test_xml.py::TestSimple::test_script_escaping FAILED        [ 47%]
[  226s] kajiki/tests/test_xml.py::TestSimple::test_script_variable FAILED        [ 48%]
[  227s] kajiki/tests/test_xml.py::TestSimple::test_style_escaping FAILED         [ 48%]
[  227s] kajiki/tests/test_xml.py::TestSimple::test_textarea_whitespace FAILED    [ 49%]
[  228s] kajiki/tests/test_xml.py::TestSimple::test_xml_entities FAILED           [ 50%]
[  228s] kajiki/tests/test_xml.py::TestSwitch::test_case_elem FAILED              [ 51%]
[  229s] kajiki/tests/test_xml.py::TestSwitch::test_switch FAILED                 [ 51%]
[  229s] kajiki/tests/test_xml.py::TestSwitch::test_switch_div PASSED             [ 52%]
[  229s] kajiki/tests/test_xml.py::TestSwitch::test_switch_multi FAILED           [ 53%]
[  229s] kajiki/tests/test_xml.py::TestElse::test_pyif_pyelse PASSED              [ 53%]
[  230s] kajiki/tests/test_xml.py::TestElse::test_pyif_pyelse_continuation FAILED [ 54%]
[  230s] kajiki/tests/test_xml.py::TestElse::test_pyiftag_pyelse_continuation FAILED [ 55%]
[  231s] kajiki/tests/test_xml.py::TestWith::test_standalone FAILED               [ 55%]
[  231s] kajiki/tests/test_xml.py::TestWith::test_with FAILED                     [ 56%]
[  232s] kajiki/tests/test_xml.py::TestWith::test_with_multiple FAILED            [ 57%]
[  232s] kajiki/tests/test_xml.py::TestWith::test_with_multiple_and_whitespace FAILED [ 57%]
[  232s] kajiki/tests/test_xml.py::TestWith::test_with_multiple_with_embedded_semicolons FAILED [ 58%]
[  233s] kajiki/tests/test_xml.py::TestWith::test_with_ordered_multiple FAILED    [ 59%]
[  233s] kajiki/tests/test_xml.py::TestWith::test_with_trailing_semicolon FAILED  [ 59%]
[  234s] kajiki/tests/test_xml.py::TestFunction::test_empty_function FAILED       [ 60%]
[  234s] kajiki/tests/test_xml.py::TestFunction::test_function FAILED             [ 61%]
[  235s] kajiki/tests/test_xml.py::TestFunction::test_function_in_attr FAILED     [ 61%]
[  235s] kajiki/tests/test_xml.py::TestCall::test_call FAILED                     [ 62%]
[  236s] kajiki/tests/test_xml.py::TestImport::test_import FAILED                 [ 63%]
[  236s] kajiki/tests/test_xml.py::TestImport::test_import_auto FAILED            [ 63%]
[  237s] kajiki/tests/test_xml.py::TestImport::test_include FAILED                [ 64%]
[  237s] kajiki/tests/test_xml.py::TestImport::test_include_html5 FAILED          [ 65%]
[  238s] kajiki/tests/test_xml.py::TestExtends::test_autoblocks FAILED            [ 65%]
[  238s] kajiki/tests/test_xml.py::TestExtends::test_autoblocks_disabling FAILED  [ 66%]
[  238s] kajiki/tests/test_xml.py::TestExtends::test_basic FAILED                 [ 67%]
[  239s] kajiki/tests/test_xml.py::TestExtends::test_block FAILED                 [ 68%]
[  239s] kajiki/tests/test_xml.py::TestExtends::test_dynamic FAILED               [ 68%]
[  240s] kajiki/tests/test_xml.py::TestClosure::test FAILED                       [ 69%]
[  240s] kajiki/tests/test_xml.py::TestPython::test_basic FAILED                  [ 70%]
[  241s] kajiki/tests/test_xml.py::TestPython::test_indent FAILED                 [ 70%]
[  241s] kajiki/tests/test_xml.py::TestPython::test_mod FAILED                    [ 71%]
[  242s] kajiki/tests/test_xml.py::TestPython::test_short FAILED                  [ 72%]
[  242s] kajiki/tests/test_xml.py::TestComment::test_basic FAILED                 [ 72%]
[  243s] kajiki/tests/test_xml.py::TestAttributes::test_attrs FAILED              [ 73%]
[  243s] kajiki/tests/test_xml.py::TestAttributes::test_basic FAILED              [ 74%]
[  244s] kajiki/tests/test_xml.py::TestAttributes::test_content FAILED            [ 74%]
[  244s] kajiki/tests/test_xml.py::TestAttributes::test_escape_attr_values FAILED [ 75%]
[  245s] kajiki/tests/test_xml.py::TestAttributes::test_html_attrs FAILED         [ 76%]
[  245s] kajiki/tests/test_xml.py::TestAttributes::test_replace FAILED            [ 76%]
[  246s] kajiki/tests/test_xml.py::TestAttributes::test_strip FAILED              [ 77%]
[  246s] kajiki/tests/test_xml.py::TestAttributes::test_xml_namespaces FAILED     [ 78%]
[  247s] kajiki/tests/test_xml.py::TestDebug::test_debug FAILED                   [ 78%]
[  247s] kajiki/tests/test_xml.py::TestPackageLoader::test_pkg_loader FAILED      [ 79%]
[  248s] kajiki/tests/test_xml.py::TestBuiltinFunctions::test_defined FAILED      [ 80%]
[  248s] kajiki/tests/test_xml.py::TestBuiltinFunctions::test_literal FAILED      [ 80%]
[  249s] kajiki/tests/test_xml.py::TestBuiltinFunctions::test_value_of FAILED     [ 81%]
[  249s] kajiki/tests/test_xml.py::TestTranslation::test_extract_python_inside FAILED [ 82%]
[  249s] kajiki/tests/test_xml.py::TestTranslation::test_extract_python_inside_invalid PASSED [ 82%]
[  250s] kajiki/tests/test_xml.py::TestTranslation::test_extract_translate FAILED [ 83%]
[  250s] kajiki/tests/test_xml.py::TestTranslation::test_scripts_non_translatable PASSED [ 84%]
[  250s] kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda FAILED [ 85%]
[  251s] kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending FAILED [ 85%]
[  251s] kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending_file FAILED [ 86%]
[  252s] kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending_twice FAILED [ 87%]
[  252s] kajiki/tests/test_xml.py::TestTranslation::test_without_substituting_gettext_with_lambda_extending_file FAILED [ 87%]
[  252s] kajiki/tests/test_xml.py::TestDOMTransformations::test_empty_text_extraction PASSED [ 88%]
[  252s] kajiki/tests/test_xml.py::TestDOMTransformations::test_empty_text_extraction_lineno PASSED [ 89%]
[  253s] kajiki/tests/test_xml.py::TestErrorReporting::test_code_error FAILED     [ 89%]
[  253s] kajiki/tests/test_xml.py::TestErrorReporting::test_syntax_error PASSED   [ 90%]
[  253s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_brackets_asymmetric FAILED [ 91%]
[  254s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_complex FAILED  [ 91%]
[  254s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_leading_opening_brace PASSED [ 92%]
[  254s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_raise_plus_with_an_operand PASSED [ 93%]
[  254s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_raise_unclosed_string PASSED [ 93%]
[  254s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_simple FAILED   [ 94%]
[  255s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_some_brackets FAILED [ 95%]
[  255s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_unclosed_braced PASSED [ 95%]
[  255s] kajiki/tests/test_xml.py::TestBracketsInExpression::test_with_padding_space FAILED [ 96%]
[  256s] kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_comment FAILED [ 97%]
[  256s] kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_multiple_nodes PASSED [ 97%]
[  256s] kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_ok FAILED      [ 98%]
[  256s] kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_only_comment PASSED [ 99%]
[  256s] kajiki/tests/test_xml.py::TestSyntaxErrorCallingWithTrailingParenthesis::test_raise PASSED [100%]
[  256s] 
[  256s] =================================== FAILURES ===================================
[  256s] ________________________________ TestBasic.test ________________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestBasic testMethod=test>
[  256s] 
[  256s]     def test(self):
[  256s] >       tpl = kajiki.template.from_ir(self.tpl)
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_ir.py:22: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56ef1b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00\x08\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestSwitch.test_basic _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestSwitch testMethod=test_basic>
[  256s] 
[  256s]     def test_basic(self):
[  256s] >       tpl = kajiki.template.from_ir(self.tpl)
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_ir.py:45: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c398b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x00B\x00\x08\x00D\x00\x02\x00>\x00\n\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ___________________________ TestFunction.test_basic ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestFunction testMethod=test_basic>
[  256s] 
[  256s]     def test_basic(self):
[  256s] >       tpl = kajiki.template.from_ir(self.tpl)
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_ir.py:70: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5695bd0, file "<string>", line 8>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x00B\x00\x08\x00\\\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #266
[  256s] _____________________________ TestCall.test_basic ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestCall testMethod=test_basic>
[  256s] 
[  256s]     def test_basic(self):
[  256s] >       tpl = kajiki.template.from_ir(self.tpl)
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_ir.py:96: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56ef510, file "<string>", line 10>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00 \x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #268
[  256s] ERROR LOOKING UP LINE #269
[  256s] ERROR LOOKING UP LINE #272
[  256s] ____________________________ TestImport.test_import ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestImport testMethod=test_import>
[  256s] 
[  256s]     def setUp(self):
[  256s]         lib = ir.TemplateNode(
[  256s]             defs=[ir.DefNode(
[  256s]                   'evenness(n)',
[  256s]                   ir.IfNode(
[  256s]                       'n % 2 == 0',
[  256s]                       ir.TextNode('even')),
[  256s]                   ir.ElseNode(
[  256s]                   ir.TextNode('odd'))),
[  256s]                   ir.DefNode(
[  256s]                   'half_evenness(n)',
[  256s]                   ir.TextNode(' half of '),
[  256s]                   ir.ExprNode('n'),
[  256s]                   ir.TextNode(' is '),
[  256s]                   ir.ExprNode('evenness(n/2)'))])
[  256s]         tpl = ir.TemplateNode(
[  256s]             defs=[ir.DefNode(
[  256s]                   '__main__()',
[  256s]                   ir.ImportNode(
[  256s]                       'lib.txt',
[  256s]                       'simple_function'),
[  256s]                   ir.ForNode(
[  256s]                   'i in range(4)',
[  256s]                   ir.ExprNode('i'),
[  256s]                   ir.TextNode(' is '),
[  256s]                   ir.ExprNode('simple_function.evenness(i)'),
[  256s]                   ir.ExprNode('simple_function.half_evenness(i)'),
[  256s]                   ir.TextNode('\n')))])
[  256s]         loader = kajiki.loader.MockLoader({
[  256s] >           'lib.txt': kajiki.template.from_ir(lib),
[  256s]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'tpl.txt': kajiki.template.from_ir(tpl)})
[  256s] 
[  256s] kajiki/tests/test_ir.py:133: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object evenness at 0x7fa3d54c8210, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00\x12\x00\x0c\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestInclude.test_include ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestInclude testMethod=test_include>
[  256s] 
[  256s]     def setUp(self):
[  256s]         hdr = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.TextNode('# header\n'))])
[  256s]         tpl = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.TextNode('a\n'),
[  256s]                     ir.IncludeNode('hdr.txt'),
[  256s]                     ir.TextNode('b\n'))])
[  256s]         loader = kajiki.loader.MockLoader({
[  256s] >           'hdr.txt': kajiki.template.from_ir(hdr),
[  256s]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'tpl.txt': kajiki.template.from_ir(tpl)})
[  256s] 
[  256s] kajiki/tests/test_ir.py:160: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5609f10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestExtends.test_extends ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestExtends testMethod=test_extends>
[  256s] 
[  256s]     def setUp(self):
[  256s]         parent_tpl = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.ExprNode('header()'),
[  256s]                     ir.ExprNode('body()'),
[  256s]                     ir.ExprNode('footer()')),
[  256s]                 ir.DefNode(
[  256s]                     'header()',
[  256s]                     ir.TextNode('# Header name='),
[  256s]                     ir.ExprNode('name'),
[  256s]                     ir.TextNode('\n')),
[  256s]                 ir.DefNode(
[  256s]                     'body()',
[  256s]                     ir.TextNode('## Parent Body\n'),
[  256s]                     ir.TextNode('local.id() = '),
[  256s]                     ir.ExprNode('local.id()'),
[  256s]                     ir.TextNode('\n'),
[  256s]                     ir.TextNode('self.id() = '),
[  256s]                     ir.ExprNode('self.id()'),
[  256s]                     ir.TextNode('\n'),
[  256s]                     ir.TextNode('child.id() = '),
[  256s]                     ir.ExprNode('child.id()'),
[  256s]                     ir.TextNode('\n')),
[  256s]                 ir.DefNode(
[  256s]                     'footer()',
[  256s]                     ir.TextNode('# Footer\n')),
[  256s]                 ir.DefNode(
[  256s]                     'id()',
[  256s]                     ir.TextNode('parent'))])
[  256s]         mid_tpl = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.ExtendNode('parent.txt')),
[  256s]                 ir.DefNode(
[  256s]                     'id()',
[  256s]                     ir.TextNode('mid'))])
[  256s]         child_tpl = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.ExtendNode('mid.txt')),
[  256s]                 ir.DefNode(
[  256s]                     'body()',
[  256s]                     ir.TextNode('## Child Body\n'),
[  256s]                     ir.ExprNode('parent.body()')),
[  256s]                 ir.DefNode(
[  256s]                     'id()',
[  256s]                     ir.TextNode('child'))])
[  256s]         loader = kajiki.loader.MockLoader({
[  256s] >           'parent.txt': kajiki.template.from_ir(parent_tpl),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'mid.txt': kajiki.template.from_ir(mid_tpl),
[  256s]             'child.txt': kajiki.template.from_ir(child_tpl)})
[  256s] 
[  256s] kajiki/tests/test_ir.py:222: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57a2640, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00Z\x00Z\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________ TestDynamicExtends.test_extends ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_ir.TestDynamicExtends testMethod=test_extends>
[  256s] 
[  256s]     def setUp(self):
[  256s]         p0 = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.TextNode('Parent 0'))])
[  256s]         p1 = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.TextNode('Parent 1'))])
[  256s]         child = ir.TemplateNode(
[  256s]             defs=[
[  256s]                 ir.DefNode(
[  256s]                     '__main__()',
[  256s]                     ir.IfNode(
[  256s]                         'p==0',
[  256s]                         ir.ExtendNode('parent0.txt')),
[  256s]                     ir.ElseNode(
[  256s]                         ir.ExtendNode('parent1.txt')))])
[  256s]         loader = kajiki.loader.MockLoader({
[  256s] >           'parent0.txt': kajiki.template.from_ir(p0),
[  256s]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'parent1.txt': kajiki.template.from_ir(p1),
[  256s]             'child.txt': kajiki.template.from_ir(child)})
[  256s] 
[  256s] kajiki/tests/test_ir.py:261: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d69c39e0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestBasic.test_auto_escape __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_auto_escape>
[  256s] 
[  256s]     def test_auto_escape(self):
[  256s] >       tpl = TextTemplate(source="${'<h1>'}", autoescape=True)
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:16: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55a2340, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestBasic.test_auto_escape_disable ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_auto_escape_disable>
[  256s] 
[  256s]     def test_auto_escape_disable(self):
[  256s] >       tpl = TextTemplate(source="${literal('<h1>')}")
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:21: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d54c8030, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestBasic.test_expr_None ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_expr_None>
[  256s] 
[  256s]     def test_expr_None(self):
[  256s] >       tpl = TextTemplate(source='Hello, ${name}\n')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:34: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d553bc30, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x12\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestBasic.test_expr_brace ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_expr_brace>
[  256s] 
[  256s]     def test_expr_brace(self):
[  256s] >       tpl = TextTemplate(source='Hello, ${name}\n')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:29: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d553ac40, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x12\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestBasic.test_expr_brace_complex _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_expr_brace_complex>
[  256s] 
[  256s]     def test_expr_brace_complex(self):
[  256s] >       tpl = TextTemplate(source="Hello, ${{'name':name}['name']}\n")
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:39: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d6447330, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00"\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestBasic.test_expr_multiline _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_expr_multiline>
[  256s] 
[  256s]     def test_expr_multiline(self):
[  256s] >       tpl = TextTemplate(source="""Hello, ${{'name': 'Rick',
[  256s]                                                'age': 26}['name']}""")
[  256s] 
[  256s] kajiki/tests/test_text.py:56: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5538f30, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01\x02\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #261
[  256s] ERROR LOOKING UP LINE #262
[  256s] ERROR LOOKING UP LINE #517
[  256s] ___________________________ TestBasic.test_expr_name ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestBasic testMethod=test_expr_name>
[  256s] 
[  256s]     def test_expr_name(self):
[  256s] >       tpl = TextTemplate(source='Hello, $name\n')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:44: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d54c83f0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x12\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestSwitch.test_ljust _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestSwitch testMethod=test_ljust>
[  256s] 
[  256s]         def test_ljust(self):
[  256s] >           tpl = TextTemplate('''     %for i in range(2)
[  256s]     $i is {%switch i % 2 %}{%case 0%}even\n{%else%}odd\n{%end%}\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:71: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d563a010, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x02\x08\x00\x08\x00D\x00\x02\x00>\x01\n\x01\x08\x01\x08\x00<\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ____________________________ TestSwitch.test_rstrip ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestSwitch testMethod=test_rstrip>
[  256s] 
[  256s]         def test_rstrip(self):
[  256s] >           tpl = TextTemplate('''     %for i in range(2)
[  256s]     $i is {%switch i % 2 %}{%case 0-%}    even\n{%else%}odd\n{%end%}\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:83: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d563a3d0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x02\x08\x00\x08\x00D\x00\x02\x00>\x01\n\x01\x08\x01\x08\x00<\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ____________________________ TestSwitch.test_switch ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestSwitch testMethod=test_switch>
[  256s] 
[  256s]         def test_switch(self):
[  256s] >           tpl = TextTemplate('''%for i in range(2)
[  256s]     $i is {%switch i % 2 %}{%case 0%}even\n{%else%}odd\n{%end%}\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:64: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d563a5b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x02\x08\x00\x08\x00D\x00\x02\x00>\x01\n\x01\x08\x01\x08\x00<\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] __________________________ TestFunction.test_function __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestFunction testMethod=test_function>
[  256s] 
[  256s]         def test_function(self):
[  256s] >           tpl = TextTemplate('''%def evenness(n)
[  256s]     {%if n % 2 == 0 %}even{%else%}odd{%end%}\\
[  256s]     %end
[  256s]     %for i in range(2)
[  256s]     $i is ${evenness(i)}
[  256s]     %end
[  256s]     ''')
[  256s] 
[  256s] kajiki/tests/test_text.py:92: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56ef1b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00"\x05\x08\x00\x08\x00"\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ______________________________ TestCall.test_call ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestCall testMethod=test_call>
[  256s] 
[  256s]         def test_call(self):
[  256s] >           tpl = TextTemplate('''%def quote(caller, speaker)
[  256s]         %for i in range(2)
[  256s]     Quoth $speaker, "${caller(i)}."
[  256s]         %end
[  256s]     %end
[  256s]     %call(n) quote(%caller ,'the raven')
[  256s]     Nevermore $n\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:105: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5532fb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00 \x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ERROR LOOKING UP LINE #261
[  256s] ERROR LOOKING UP LINE #265
[  256s] ERROR LOOKING UP LINE #266
[  256s] _________________________ TestImport.test_import_auto __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestImport testMethod=test_import_auto>
[  256s] 
[  256s]         def test_import_auto(self):
[  256s] >           lib = TextTemplate('''%def evenness(n)
[  256s]     %if n % 2 == 0
[  256s]     even\\
[  256s]     %else
[  256s]     odd\\
[  256s]     %end
[  256s]     %end
[  256s]     %def half_evenness(n)
[  256s]      half of $n is ${evenness(n/2)}\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:146: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56760b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x0b'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestImport.test_import_simple _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestImport testMethod=test_import_simple>
[  256s] 
[  256s]         def test_import_simple(self):
[  256s] >           lib = TextTemplate('''%def evenness(n)
[  256s]     %if n % 2 == 0
[  256s]     even\\
[  256s]     %else
[  256s]     odd\\
[  256s]     %end
[  256s]     %end
[  256s]     %def half_evenness(n)
[  256s]      half of $n is ${evenness(n/2)}\\
[  256s]     %end''')
[  256s] 
[  256s] kajiki/tests/test_text.py:121: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56fa730, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x0b'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestImport.test_include ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestImport testMethod=test_include>
[  256s] 
[  256s]         def test_include(self):
[  256s]             loader = MockLoader({
[  256s] >               'hdr.txt': TextTemplate('# header\n'),
[  256s]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]                 'tpl.txt': TextTemplate('''a
[  256s]     %include "hdr.txt"
[  256s]     b
[  256s]     ''')})
[  256s] 
[  256s] kajiki/tests/test_text.py:172: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56097c0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x02'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestExtends.test_basic ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestExtends testMethod=test_basic>
[  256s] 
[  256s]         def test_basic(self):
[  256s] >           parent = TextTemplate('''
[  256s]     %def header()
[  256s]     # Header name=$name
[  256s]     %end
[  256s]     %def footer()
[  256s]     # Footer
[  256s]     %end
[  256s]     %def body()
[  256s]     ## Parent Body
[  256s]     id() = ${id()}
[  256s]     local.id() = ${local.id()}
[  256s]     self.id() = ${self.id()}
[  256s]     child.id() = ${child.id()}
[  256s]     %end
[  256s]     %def id()
[  256s]     parent\\
[  256s]     %end
[  256s]     ${header()}${body()}${footer()}''')
[  256s] 
[  256s] kajiki/tests/test_text.py:184: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5531590, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x11 \x00 \x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestExtends.test_block ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestExtends testMethod=test_block>
[  256s] 
[  256s]         def test_block(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent.txt': TextTemplate('''%def greet(name)
[  256s]     Hello, $name!\\
[  256s]     %end
[  256s]     %def sign(name)
[  256s]     Sincerely,
[  256s]     $name\\
[  256s]     %end
[  256s]     ${greet(to)}
[  256s]     
[  256s]     %block body
[  256s]     It was good seeing you last Friday.  Thanks for the gift!
[  256s]     %end
[  256s]     
[  256s]     ${sign(from_)}
[  256s]     '''),
[  256s]                 'child.txt': TextTemplate('''%extends "parent.txt"
[  256s]     %def greet(name)
[  256s]     Dear $name:\\
[  256s]     %end
[  256s]     %block body
[  256s]     ${parent_block()}\\
[  256s]     
[  256s]     And don't forget you owe me money!
[  256s]     %end
[  256s]     ''')})
[  256s] 
[  256s] kajiki/tests/test_text.py:250: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d553f0a0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x08,\x01\x08\x00Z\x04\x08\x00,\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestExtends.test_dynamic ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestExtends testMethod=test_dynamic>
[  256s] 
[  256s]         def test_dynamic(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent0.txt': TextTemplate('Parent 0'),
[  256s]                                ^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]                 'parent1.txt': TextTemplate('Parent 1'),
[  256s]                 'child.txt': TextTemplate('''%if p == 0
[  256s]     %extends "parent0.txt"
[  256s]     %else
[  256s]     %extends "parent1.txt"
[  256s]     %end
[  256s]     ''')
[  256s]             })
[  256s] 
[  256s] kajiki/tests/test_text.py:233: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5607ab0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________________ TestClosure.test _______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestClosure testMethod=test>
[  256s] 
[  256s]         def test(self):
[  256s] >           tpl = TextTemplate('''%def add(x)
[  256s]     %def inner(y)
[  256s]     ${x+y}\\
[  256s]     %end
[  256s]     ${inner(x*2)}\\
[  256s]     %end
[  256s]     ${add(5)}
[  256s]     ''')
[  256s] 
[  256s] kajiki/tests/test_text.py:289: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d54c9a70, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x07"\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_basic _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestPython testMethod=test_basic>
[  256s] 
[  256s]         def test_basic(self):
[  256s] >           tpl = TextTemplate('''%py
[  256s]     import os
[  256s]     %end
[  256s]     ${os.path.join('a','b','c')}''')
[  256s] 
[  256s] kajiki/tests/test_text.py:303: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55a3330, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00\x08\x04'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_indent ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestPython testMethod=test_indent>
[  256s] 
[  256s]         def test_indent(self):
[  256s] >           tpl = TextTemplate('''%py
[  256s]         import os
[  256s]         import re
[  256s]     %end
[  256s]     ${os.path.join('a','b','c')}''')
[  256s] 
[  256s] kajiki/tests/test_text.py:311: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55a3220, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x00\x08\x00\x08\x05'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________________ TestPython.test_mod ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestPython testMethod=test_mod>
[  256s] 
[  256s]         def test_mod(self):
[  256s] >           tpl = TextTemplate('''%py% import os
[  256s]     %def test()
[  256s]     ${os.path.join('a','b','c')}\\
[  256s]     %end
[  256s]     ${test()}''')
[  256s] 
[  256s] kajiki/tests/test_text.py:326: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d553bf00, file "<string>", line 3>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x05'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_short _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestPython testMethod=test_short>
[  256s] 
[  256s]         def test_short(self):
[  256s] >           tpl = TextTemplate('''%py import os
[  256s]     ${os.path.join('a','b','c')}''')
[  256s] 
[  256s] kajiki/tests/test_text.py:320: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55cc140, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x00\x08\x02'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________________ TestDebug.test_debug _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_text.TestDebug testMethod=test_debug>
[  256s] 
[  256s]     def test_debug(self):
[  256s]         loader = FileLoader(path=os.path.join(os.path.dirname(__file__),
[  256s]                             'data'))
[  256s] >       tpl = loader.import_('debug.txt')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_text.py:339: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:59: in <lambda>
[  256s]     txt=lambda *a, **kw: TextTemplate(
[  256s] kajiki/text.py:69: in TextTemplate
[  256s]     return kajiki.template.from_ir(tree)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5538f30, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/debug.txt'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\n \x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_CDATA_disabled ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_CDATA_disabled>
[  256s] 
[  256s]     def test_CDATA_disabled(self):
[  256s]         src = '<script> $name </script>'
[  256s] >       perform(src, '<script> Rick </script>', mode='xml', cdata_scripts=False)
[  256s] 
[  256s] kajiki/tests/test_xml.py:136: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d559c390, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_CDATA_escaping ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_CDATA_escaping>
[  256s] 
[  256s]     def test_CDATA_escaping(self):
[  256s]         src = '''<myxml><data><![CDATA[&gt;&#240; $name]]></data></myxml>'''
[  256s] >       perform(src, '<myxml><data><![CDATA[&gt;&#240; Rick]]></data></myxml>', mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:141: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5535fd0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________ TestSimple.test_CDATA_escaping_mixed _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_CDATA_escaping_mixed>
[  256s] 
[  256s]     def test_CDATA_escaping_mixed(self):
[  256s]         src = '''<myxml><data><![CDATA[&gt;&#240; $name]]> &gt;</data></myxml>'''
[  256s] >       perform(src, '<myxml><data><![CDATA[&gt;&#240; Rick]]> &gt;</data></myxml>', mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:146: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57e72d0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00L\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________ TestSimple.test_double_escape_dollar _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_double_escape_dollar>
[  256s] 
[  256s]     def test_double_escape_dollar(self):
[  256s] >       perform('<div>$$$$</div>', '<div>$$</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:164: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5536810, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestSimple.test_empty_attr __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_empty_attr>
[  256s] 
[  256s]     def test_empty_attr(self):
[  256s] >       perform(source='<img src="/foo/bar.baz.gif" alt="" />', mode='html',
[  256s]             expected_output='<img alt="" src="/foo/bar.baz.gif">')
[  256s] 
[  256s] kajiki/tests/test_xml.py:88: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555be55f0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x06\x00N\x00H\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_escape_dollar _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_escape_dollar>
[  256s] 
[  256s]     def test_escape_dollar(self):
[  256s] >       perform('<div>$$</div>', '<div>$</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:158: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c4c90, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________ TestSimple.test_escape_dollar_followed_by_dollar _______________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_escape_dollar_followed_by_dollar>
[  256s] 
[  256s]     def test_escape_dollar_followed_by_dollar(self):
[  256s] >       perform('<div>$$$</div>', '<div>$$</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:161: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5535d10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestSimple.test_expr_brace_complex ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_expr_brace_complex>
[  256s] 
[  256s]     def test_expr_brace_complex(self):
[  256s] >       perform("<div>Hello, ${{'name':name}['name']}</div>",
[  256s]                 '<div>Hello, Rick</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:177: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5555a10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00\\\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestSimple.test_expr_braced __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_expr_braced>
[  256s] 
[  256s]     def test_expr_braced(self):
[  256s] >       perform('<div>Hello, ${name}</div>', '<div>Hello, Rick</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:174: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5535370, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_expr_multiline ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_expr_multiline>
[  256s] 
[  256s]     def test_expr_multiline(self):
[  256s] >       perform("""<div>Hello, ${{'name': 'Rick',
[  256s]                                  'age': 26}['name']}</div>""",
[  256s]                 '<div>Hello, Rick</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:181: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5555a10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00.\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #262
[  256s] ERROR LOOKING UP LINE #263
[  256s] ERROR LOOKING UP LINE #518
[  256s] ERROR LOOKING UP LINE #520
[  256s] _____________________ TestSimple.test_expr_multiline_cdata _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_expr_multiline_cdata>
[  256s] 
[  256s]     def test_expr_multiline_cdata(self):
[  256s] >       perform("""<script><![CDATA[Hello, ${{'name': 'Rick',
[  256s]                                  'age': 26}['name']}]]></script>""",
[  256s]                 '<script>/*<![CDATA[*/Hello, Rick/*]]>*/</script>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:195: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5533340, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00.\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #261
[  256s] ERROR LOOKING UP LINE #262
[  256s] ERROR LOOKING UP LINE #517
[  256s] ERROR LOOKING UP LINE #519
[  256s] __________________________ TestSimple.test_expr_name ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_expr_name>
[  256s] 
[  256s]     def test_expr_name(self):
[  256s] >       perform('<div>Hello, $name</div>', '<div>Hello, Rick</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:171: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5536550, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_html_entities _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_html_entities>
[  256s] 
[  256s]     def test_html_entities(self):
[  256s]         source = "<div>Spam&nbsp;Spam &lt; Spam &gt; Spam &hellip;</div>"
[  256s]         output = '<div>Spam Spam &lt; Spam &gt; Spam \u2026</div>'
[  256s]         assert chr(32) in output  # normal space
[  256s]         assert chr(160) in output  # non breaking space
[  256s] >       perform(source, output)
[  256s] 
[  256s] kajiki/tests/test_xml.py:231: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c5350, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________ TestSimple.test_jquery_call_is_not_expr ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_jquery_call_is_not_expr>
[  256s] 
[  256s]     def test_jquery_call_is_not_expr(self):
[  256s]         '''Ensure we handle '$(' as a text literal, since it cannot be a
[  256s]         valid variable sequence.  This simplifies, for example,
[  256s]         templates containing inline scripts with jQuery calls
[  256s]         which otherwise have to be written '$$(...'
[  256s]         '''
[  256s]         js = "$(function () { alert('.ready()'); });"
[  256s]         src = "<html><pre>" + js + "</pre><script>" + js + \
[  256s]               "</script></html>"
[  256s]         out = "<html><pre>" + js + "</pre><script>/*<![CDATA[*/" + js + \
[  256s]               "/*]]>*/</script></html>"
[  256s] >       perform(src, out)
[  256s] 
[  256s] kajiki/tests/test_xml.py:210: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d559c390, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________ TestSimple.test_jquery_shortcut_is_not_expr __________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_jquery_shortcut_is_not_expr>
[  256s] 
[  256s]     def test_jquery_shortcut_is_not_expr(self):
[  256s]         '''Ensure we handle '$.' as a text literal in script blocks'''
[  256s]     
[  256s]         js = "$.extend({}, {foo: 'bar'})"
[  256s]         src = "<html><pre>" + js + "</pre><script>" + js + \
[  256s]               "</script></html>"
[  256s]         out = "<html><pre>" + js + "</pre><script>/*<![CDATA[*/" + js + \
[  256s]               "/*]]>*/</script></html>"
[  256s] >       perform(src, out)
[  256s] 
[  256s] kajiki/tests/test_xml.py:220: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c5230, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_pre_whitespace ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_pre_whitespace>
[  256s] 
[  256s]     def test_pre_whitespace(self):
[  256s]         src = '<pre name="foo">\nHey there.  \n\n    I am indented.\n' \
[  256s]               '</pre>'
[  256s] >       perform(src, src, mode='html')
[  256s] 
[  256s] kajiki/tests/test_xml.py:94: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57a34c0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x08\x01B\x02'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________ TestSimple.test_preserve_dollar_not_variable_brace ______________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_preserve_dollar_not_variable_brace>
[  256s] 
[  256s]     def test_preserve_dollar_not_variable_brace(self):
[  256s] >       perform('<div>$(</div>', '<div>$(</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:167: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c4a50, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestSimple.test_script ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_script>
[  256s] 
[  256s]     def test_script(self):
[  256s]         'Always close script tags, even in xml mode.'
[  256s]         source = '<html><script src="public"/></html>'
[  256s]         output = '<html><script src="public"></script></html>'
[  256s] >       perform(source, output, mode='html')
[  256s] 
[  256s] kajiki/tests/test_xml.py:107: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555cdb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestSimple.test_script_commented_CDATA ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_script_commented_CDATA>
[  256s] 
[  256s]     def test_script_commented_CDATA(self):
[  256s]         script = 'if (1 < 2) { doc.write("<p>Offen&nbsp;bach</p>"); }\n'
[  256s]         src = '<script>/*<![CDATA[*/\n{0}/*]]>*/</script>'.format(script)
[  256s] >       perform(src, mode='html',
[  256s]                 expected_output='<script>/**/\n{0}/**/</script>'.format(script))
[  256s] 
[  256s] kajiki/tests/test_xml.py:152: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5813360, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________ TestSimple.test_script_escaping ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_script_escaping>
[  256s] 
[  256s]     def test_script_escaping(self):
[  256s]         '''In HTML script and style tags are automatically CDATA; in XML they
[  256s]         must be explicitly be made so.
[  256s]         '''
[  256s]         script = 'if (1 < 2) { doc.write("<p>Offen&nbsp;bach</p>"); }\n'
[  256s]         src = '<script><![CDATA[\n{0}]]></script>'.format(script)
[  256s] >       perform(src, mode='html',
[  256s]                 expected_output='<script>\n{0}</script>'.format(script))
[  256s] 
[  256s] kajiki/tests/test_xml.py:116: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d560b1c0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________ TestSimple.test_script_variable ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_script_variable>
[  256s] 
[  256s]     def test_script_variable(self):
[  256s]         '''Interpolate variables inside <script> tags'''
[  256s]         src = '<script><![CDATA[ $name ]]></script>'
[  256s] >       perform(src, '<script>/*<![CDATA[*/ Rick /*]]>*/</script>', mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:131: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c5230, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00L\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestSimple.test_style_escaping ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_style_escaping>
[  256s] 
[  256s]     def test_style_escaping(self):
[  256s]         style = 'html > body { display: none; }\n'
[  256s]         src = '<style><![CDATA[\n{0}]]></style>'.format(style)
[  256s] >       perform(src, '<style>/*<![CDATA[*/\n{0}/*]]>*/</style>'.format(style),
[  256s]                 mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:124: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5244d30, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________ TestSimple.test_textarea_whitespace ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_textarea_whitespace>
[  256s] 
[  256s]     def test_textarea_whitespace(self):
[  256s]         src = '<textarea name="foo">\nHey there.  \n\n    I am indented.\n' \
[  256s]               '</textarea>'
[  256s] >       perform(src, src, mode='html')
[  256s] 
[  256s] kajiki/tests/test_xml.py:100: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57a3860, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x08\x01B\x02'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestSimple.test_xml_entities _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSimple testMethod=test_xml_entities>
[  256s] 
[  256s]     def test_xml_entities(self):
[  256s]         source = "<div>Cookies &amp; Cream</div>"
[  256s] >       perform(source, source)
[  256s] 
[  256s] kajiki/tests/test_xml.py:224: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c4db0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestSwitch.test_case_elem ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSwitch testMethod=test_case_elem>
[  256s] 
[  256s]       def test_case_elem(self):
[  256s] >         perform('''<div>
[  256s]       <py:switch test="True">
[  256s]         <span py:case="0 == 1">0</span>
[  256s]         <span py:case="1 == 1">1</span>
[  256s]         <span py:else="">2</span>
[  256s]       </py:switch>
[  256s]     </div>''', '<div>\n    <span>1</span>\n  </div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:261: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c65920, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01>\x00\x02\x01F\x00\x08\x00B\x00\n\x01F\x00\x08\x00B\x00\n\x01\x08\x00B\x00\x08\x00<\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestSwitch.test_switch ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSwitch testMethod=test_switch>
[  256s] 
[  256s]         def test_switch(self):
[  256s] >           perform('''<div py:for="i in range(2)">
[  256s]     $i is <py:switch test="i % 2">
[  256s]     <py:case value="0">even</py:case>
[  256s]     <py:else>odd</py:else>
[  256s]     </py:switch></div>''',   '''<div>
[  256s]     0 is even</div><div>
[  256s]     1 is odd</div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:236: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c73450, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01"\x00\x08\x01B\x00B\x00\x08\x00D\x00\x02\x01>\x00D\x01B\x00<\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] _________________________ TestSwitch.test_switch_multi _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestSwitch testMethod=test_switch_multi>
[  256s] 
[  256s]         def test_switch_multi(self):
[  256s] >           perform('''<div py:for="i in range(8)">
[  256s]     $i is <py:switch test="i % 4">
[  256s]     <py:case value="0">ok</py:case>
[  256s]     <py:case value="1">nearly</py:case>
[  256s]     <py:else>nope</py:else>
[  256s]     </py:switch></div>''',   '''<div>
[  256s]     0 is ok</div><div>
[  256s]     1 is nearly</div><div>
[  256s]     2 is nope</div><div>
[  256s]     3 is nope</div><div>
[  256s]     4 is ok</div><div>
[  256s]     5 is nearly</div><div>
[  256s]     6 is nope</div><div>
[  256s]     7 is nope</div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:245: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555cbbf10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01$\x00\x08\x01B\x00B\x00\x08\x00D\x00\x02\x01>\x00D\x01>\x00D\x01B\x00<\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #260
[  256s] ____________________ TestElse.test_pyif_pyelse_continuation ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestElse testMethod=test_pyif_pyelse_continuation>
[  256s] 
[  256s]     def test_pyif_pyelse_continuation(self):
[  256s] >       tpl = perform(
[  256s]             '''<div><py:if test="False">True</py:if><py:else>False</py:else></div>''',
[  256s]             '''<div>False</div>'''
[  256s]         )
[  256s] 
[  256s] kajiki/tests/test_xml.py:306: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c6c10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x02\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________ TestElse.test_pyiftag_pyelse_continuation ___________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestElse testMethod=test_pyiftag_pyelse_continuation>
[  256s] 
[  256s]     def test_pyiftag_pyelse_continuation(self):
[  256s] >       tpl = perform(
[  256s]             '''<div><div py:if="False">True</div><py:else>False</py:else></div>''',
[  256s]             '''<div>False</div>'''
[  256s]         )
[  256s] 
[  256s] kajiki/tests/test_xml.py:300: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c60d0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x02\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestWith.test_standalone ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_standalone>
[  256s] 
[  256s]     def test_standalone(self):
[  256s] >       perform('''<div><py:with vars="a=';';b='-)'">$a$b</py:with></div>''',
[  256s]                 '<div>;-)</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:354: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56d9230, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\\\x00\x04\x00\x04\x00B\x00B\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________________ TestWith.test_with ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with>
[  256s] 
[  256s]         def test_with(self):
[  256s] >           perform('''<div py:with="a='foo'">
[  256s]     <div>$a</div>
[  256s]     <div py:with="a=5">$a</div>
[  256s]     <div>$a</div>
[  256s]     </div>''',   '''<div>
[  256s]     <div>foo</div>
[  256s]     <div>5</div>
[  256s]     <div>foo</div>
[  256s]     </div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:314: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c106b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01Z\x00\x04\x00\x08\x01B\x00\x08\x01Z\x00\x04\x00\x08\x00B\x00\x08\x00@\x00\x08\x01B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestWith.test_with_multiple __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with_multiple>
[  256s] 
[  256s]         def test_with_multiple(self):
[  256s] >           perform('''<div py:with="a='foo';b=3">
[  256s]     <div>$a - $b</div>
[  256s]     <div py:with="a=5;b=1">$a - $b</div>
[  256s]     <div>$a - $b</div>
[  256s]     </div>''',   '''<div>
[  256s]     <div>foo - 3</div>
[  256s]     <div>5 - 1</div>
[  256s]     <div>foo - 3</div>
[  256s]     </div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:325: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c72040, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\\\x00\x04\x00\x04\x00\x08\x01B\x00B\x00B\x00\x08\x01\\\x00\x04\x00\x04\x00\x08\x00B\x00B\x00B\x00\x08\x00B\x00\x08\x01B\x00B\x00B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________ TestWith.test_with_multiple_and_whitespace __________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with_multiple_and_whitespace>
[  256s] 
[  256s]     def test_with_multiple_and_whitespace(self):
[  256s] >       perform('''<div py:with="a = 'foo';
[  256s]                                  b = 3">$a - $b</div>''',
[  256s]                 '<div>foo - 3</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:336: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c9f2e0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\\\x00\x04\x00\x04\x00\x08\x01B\x00B\x00B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________ TestWith.test_with_multiple_with_embedded_semicolons _____________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with_multiple_with_embedded_semicolons>
[  256s] 
[  256s]     def test_with_multiple_with_embedded_semicolons(self):
[  256s] >       perform('''<div py:with="a=';';b='-)'">$a$b</div>''',
[  256s]                 '<div>;-)</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:350: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56da030, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\\\x00\x04\x00\x04\x00\x08\x00B\x00B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________ TestWith.test_with_ordered_multiple ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with_ordered_multiple>
[  256s] 
[  256s]     def test_with_ordered_multiple(self):
[  256s] >       perform('''<div py:with="a='foo';b=a * 2;c=b[::-1];d=c[:3]">'''
[  256s]                 '''$a $b $c $d</div>''',
[  256s]                 '<div>foo foofoo oofoof oof</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:345: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c65920, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\\\x00\x04\x00\n\x00\x16\x00\x14\x00\x08\x00B\x00\x08\x00B\x00\x08\x00B\x00\x08\x00B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestWith.test_with_trailing_semicolon _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestWith testMethod=test_with_trailing_semicolon>
[  256s] 
[  256s]     def test_with_trailing_semicolon(self):
[  256s] >       perform('''<div py:with="a = 'foo';">$a</div>''',
[  256s]                 '<div>foo</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:341: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5662170, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01Z\x00\x04\x00\x08\x00B\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________ TestFunction.test_empty_function _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestFunction testMethod=test_empty_function>
[  256s] 
[  256s]     def test_empty_function(self):
[  256s]         '''Do not crash if a function has no content.'''
[  256s] >       perform('<div><py:def function="bruhaha()"></py:def></div>',
[  256s]                 '<div></div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:371: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d53ff430, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestFunction.test_function __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestFunction testMethod=test_function>
[  256s] 
[  256s]         def test_function(self):
[  256s] >           perform('''<div
[  256s]     ><div py:def="evenness(n)"><py:if test="n % 2 == 0">even</py:if><py:else>odd</py:else></div>
[  256s]     <py:for each="i in range(2)">$i is ${evenness(i)}
[  256s]     </py:for
[  256s]     ></div>''',   '''<div>
[  256s]     0 is <div>even</div>
[  256s]     1 is <div>odd</div>
[  256s]     </div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:360: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d563a5b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x02"\x00B\x00B\x00\\\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestFunction.test_function_in_attr ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestFunction testMethod=test_function_in_attr>
[  256s] 
[  256s]         def test_function_in_attr(self):
[  256s]             '''Attribute value with a function call.'''
[  256s] >           perform('''<div
[  256s]     ><py:def function="attrtest(n, sz=16)">text/$sz/$n</py:def><img
[  256s]     src="${attrtest(name)}"/></div>''',
[  256s]                     '<div><img src="text/16/Rick"/></div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:376: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555cdb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01\x06\x00N\x00H\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________________ TestCall.test_call ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestCall testMethod=test_call>
[  256s] 
[  256s]         def test_call(self):
[  256s] >           perform('''<div
[  256s]     ><py:def function="quote(caller, speaker)"
[  256s]     ><ul>
[  256s]         <li py:for="i in range(2)">Quoth $speaker, ${caller(i)}</li>
[  256s]     </ul></py:def
[  256s]     ><py:call args="n" function="quote(%caller, 'the raven')"
[  256s]     >Nevermore $n</py:call></div>''',   '''<div><ul>
[  256s]         <li>Quoth the raven, Nevermore 0</li><li>Quoth the raven, Nevermore 1</li>
[  256s]     </ul></div>''')
[  256s] 
[  256s] kajiki/tests/test_xml.py:384: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5532040, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x05 \x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ----------------------------- Captured stdout call -----------------------------
[  256s] ERROR LOOKING UP LINE #261
[  256s] ERROR LOOKING UP LINE #262
[  256s] ERROR LOOKING UP LINE #265
[  256s] ERROR LOOKING UP LINE #266
[  256s] ____________________________ TestImport.test_import ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestImport testMethod=test_import>
[  256s] 
[  256s]         def test_import(self):
[  256s]             loader = MockLoader({
[  256s] >               'lib.html': XMLTemplate(source='''<div>
[  256s]     <span py:def="evenness(n)"
[  256s]         ><py:if test="n % 2 == 0"
[  256s]             >even</py:if
[  256s]         ><py:else
[  256s]             >odd</py:else
[  256s]     ></span>
[  256s]     <py:def function="half_evenness(n)"
[  256s]         >half of $n is ${evenness(n/2)}</py:def>
[  256s]     </div>'''),
[  256s]                 'tpl.html': XMLTemplate(source='''<div>
[  256s]     <py:import href="lib.html" alias="simple_function"
[  256s]     /><ul>
[  256s]         <li py:for="i in range(4)">
[  256s]             $i is ${simple_function.evenness(i)} ${simple_function.half_evenness(i)}
[  256s]         </li>
[  256s]     </ul>
[  256s]     </div>''')
[  256s]             })
[  256s] 
[  256s] kajiki/tests/test_xml.py:398: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d549b1c0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestImport.test_import_auto __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestImport testMethod=test_import_auto>
[  256s] 
[  256s]         def test_import_auto(self):
[  256s]             loader = MockLoader({
[  256s] >               'lib.html': XMLTemplate(source='''<div>
[  256s]     <span py:def="evenness(n)"
[  256s]         ><py:if test="n % 2 == 0"
[  256s]             >even</py:if
[  256s]         ><py:else
[  256s]             >odd</py:else
[  256s]     ></span>
[  256s]     <py:def function="half_evenness(n)"
[  256s]         >half of $n is ${evenness(n/2)}</py:def>
[  256s]     </div>'''),
[  256s]                 'tpl.html': XMLTemplate(source='''<div>
[  256s]     <py:import href="lib.html"
[  256s]     /><ul>
[  256s]         <li py:for="i in range(4)">
[  256s]             $i is ${lib.evenness(i)} ${lib.half_evenness(i)}
[  256s]         </li>
[  256s]     </ul>
[  256s]     </div>''')
[  256s]             })
[  256s] 
[  256s] kajiki/tests/test_xml.py:435: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5406180, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestImport.test_include ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestImport testMethod=test_include>
[  256s] 
[  256s]     def test_include(self):
[  256s]         '''Must NOT result in: NameError: global name 'name' is not defined'''
[  256s]         loader = MockLoader({
[  256s] >           'included.html': XMLTemplate('<p>The included template must also '
[  256s]                 'access Kajiki globals and the template context: '
[  256s]                 '${value_of("name")}</p>\n'),
[  256s]             'tpl.html': XMLTemplate('<html><body><p>This is the body</p>\n'
[  256s]                 '<py:include href="included.html"/></body></html>')
[  256s]         })
[  256s] 
[  256s] kajiki/tests/test_xml.py:473: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5555cf0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00\\\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestImport.test_include_html5 _________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestImport testMethod=test_include_html5>
[  256s] 
[  256s]     def test_include_html5(self):
[  256s]         '''Should not have DOCTYPE'''
[  256s]         class XMLSourceLoader(MockLoader):
[  256s]             """Fakes a FileLoader, but with source in a lookup table.
[  256s]     
[  256s]             It differs from MockLoader because MockLoader doesn't
[  256s]             create the template on load, it's already pre-instantiated
[  256s]             by the user of the MockLoader
[  256s]             """
[  256s]             def __init__(self, sources):
[  256s]                 self.sources = sources
[  256s]                 super(XMLSourceLoader, self).__init__({})
[  256s]     
[  256s]             def _load(self, name, encoding='utf-8', *args, **kwargs):
[  256s]                 return XMLTemplate(source=self.sources[name],
[  256s]                                    mode='html5',
[  256s]                                    *args, **kwargs)
[  256s]     
[  256s]         loader = XMLSourceLoader({
[  256s]             'included.html': '<p>The included template must also '
[  256s]                 'access Kajiki globals and the template context: '
[  256s]                 '${value_of("name")}</p>\n',
[  256s]             'tpl.html': '<html><body><p>This is the body</p>\n'
[  256s]                 '<py:include href="included.html"/></body></html>'
[  256s]         })
[  256s] >       tpl = loader.import_('tpl.html')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:510: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/tests/test_xml.py:499: in _load
[  256s]     return XMLTemplate(source=self.sources[name],
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5696250, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00\x08\x01~\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestExtends.test_autoblocks __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestExtends testMethod=test_autoblocks>
[  256s] 
[  256s]         def test_autoblocks(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent.html': XMLTemplate('''
[  256s]     <html py:strip="">
[  256s]     <head></head>
[  256s]     <body>
[  256s]         <p py:block="body">It was good seeing you last Friday.
[  256s]         Thanks for the gift!</p>
[  256s]     </body>
[  256s]     </html>'''),
[  256s]                 'child.html': XMLTemplate('''
[  256s]     <html>
[  256s]     <py:extends href="parent.html"/>
[  256s]     <body><em>Great conference this weekend!</em></body>
[  256s]     </html>''', autoblocks=['body'])})
[  256s] 
[  256s] kajiki/tests/test_xml.py:619: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5533cc0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x02\x02\x00\x08\x03Z\x01\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestExtends.test_autoblocks_disabling _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestExtends testMethod=test_autoblocks_disabling>
[  256s] 
[  256s]         def test_autoblocks_disabling(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent.html': XMLTemplate('''
[  256s]     <html py:strip="">
[  256s]     <head></head>
[  256s]     <body py:autoblock="False">
[  256s]         <p py:block="body">It was good seeing you last Friday.
[  256s]         Thanks for the gift!</p>
[  256s]     </body>
[  256s]     </html>''', autoblocks=['body']),
[  256s]                 'child.html': XMLTemplate('''
[  256s]     <html>
[  256s]     <py:extends href="parent.html"/>
[  256s]     <body><em>Great conference this weekend!</em></body>
[  256s]     </html>''', autoblocks=['body'])})
[  256s] 
[  256s] kajiki/tests/test_xml.py:657: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5531920, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x02\x02\x00\x08\x03Z\x01\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestExtends.test_basic ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestExtends testMethod=test_basic>
[  256s] 
[  256s]         def test_basic(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent.html': XMLTemplate('''<div
[  256s]     ><h1 py:def="header()">Header name=$name</h1
[  256s]     ><h6 py:def="footer()">Footer</h6
[  256s]     ><div py:def="body()">
[  256s]     id() = ${id()}
[  256s]     local.id() = ${local.id()}
[  256s]     self.id() = ${self.id()}
[  256s]     child.id() = ${child.id()}
[  256s]     </div><span py:def="id()">parent</span>
[  256s]     ${header()}
[  256s]     ${body()}
[  256s]     ${footer()}
[  256s]     </div>'''),
[  256s]                 'mid.html': XMLTemplate('''<py:extends href="parent.html"
[  256s]     ><span py:def="id()">mid</span
[  256s]     ></py:extends>'''),
[  256s]                 'child.html': XMLTemplate('''<py:extends href="mid.html"
[  256s]     ><span py:def="id()">child</span
[  256s]     ><div py:def="body()">
[  256s]     <h2>Child Body</h2>
[  256s]     ${parent.body()}
[  256s]     </div></py:extends>''')})
[  256s] 
[  256s] kajiki/tests/test_xml.py:520: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5550bd0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\tZ\x00\x08\x01Z\x00\x08\x01Z\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestExtends.test_block ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestExtends testMethod=test_block>
[  256s] 
[  256s]         def test_block(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent.html': XMLTemplate('''<div
[  256s]     ><py:def function="greet(name)"
[  256s]     >Hello, $name!</py:def
[  256s]     ><py:def function="sign(name)"
[  256s]     >Sincerely,<br/><em>$name</em></py:def
[  256s]     >${greet(to)}
[  256s]     
[  256s]     <p py:block="body">It was good seeing you last Friday.
[  256s]     Thanks for the gift!</p>
[  256s]     
[  256s]     ${sign(from_)}
[  256s]     </div>'''),
[  256s]                 'child.html': XMLTemplate('''<py:extends href="parent.html"
[  256s]     ><py:def function="greet(name)"
[  256s]     >Dear $name:</py:def
[  256s]     ><py:block name="body">${parent_block()}
[  256s]     <p>And don't forget you owe me money!</p>
[  256s]     </py:block
[  256s]     ></py:extends>
[  256s]     ''')})
[  256s] 
[  256s] kajiki/tests/test_xml.py:576: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555b65380, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x05f\x00\x08\x02Z\x01\x08\x02f\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ___________________________ TestExtends.test_dynamic ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestExtends testMethod=test_dynamic>
[  256s] 
[  256s]         def test_dynamic(self):
[  256s]             loader = MockLoader({
[  256s] >               'parent0.html': XMLTemplate('<span>Parent 0</span>'),
[  256s]                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]                 'parent1.html': XMLTemplate('<span>Parent 1</span>'),
[  256s]                 'child.html': XMLTemplate('''<div
[  256s]     ><py:if test="p == 0"><py:extends href="parent0.html"/></py:if
[  256s]     ><py:else><py:extends href="parent1.html"/></py:else
[  256s]     ></div>
[  256s]     ''')
[  256s]             })
[  256s] 
[  256s] kajiki/tests/test_xml.py:560: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561cc90, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________________________ TestClosure.test _______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestClosure testMethod=test>
[  256s] 
[  256s]         def test(self):
[  256s] >           perform('''<div
[  256s]     ><py:def function="add(x)"
[  256s]         ><py:def function="inner(y)"
[  256s]             >${x+y}</py:def
[  256s]         >${inner(x*2)}</py:def
[  256s]     >${add(5)}</div>''',   '<div>15</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:696: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5532630, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x05\\\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_basic _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestPython testMethod=test_basic>
[  256s] 
[  256s]         def test_basic(self):
[  256s] >           perform('''<div
[  256s]     ><?py
[  256s]     import os
[  256s]     ?>${os.path.join('a', 'b', 'c')}</div>''',   '<div>a/b/c</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:706: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d564e3a0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01\x08\x02v\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_indent ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestPython testMethod=test_indent>
[  256s] 
[  256s]         def test_indent(self):
[  256s] >           perform('''<div
[  256s]     ><?py #
[  256s]         import os
[  256s]         import re
[  256s]     ?>${os.path.join('a','b','c')}</div>''',   '<div>a/b/c</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:712: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5536970, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01\x08\x00\x08\x03v\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________________ TestPython.test_mod ______________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestPython testMethod=test_mod>
[  256s] 
[  256s]         def test_mod(self):
[  256s] >           perform('''<div
[  256s]     ><?py %import os
[  256s]     ?><py:def function="test()"
[  256s]     >${os.path.join('a', 'b', 'c')}</py:def
[  256s]     >${test()}</div>''',   '<div>a/b/c</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:724: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5531de0, file "<string>", line 3>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x04Z\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestPython.test_short _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestPython testMethod=test_short>
[  256s] 
[  256s]         def test_short(self):
[  256s] >           perform('''<div
[  256s]     ><?py import os
[  256s]     ?>${os.path.join('a', 'b', 'c')}</div>''',   '<div>a/b/c</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:719: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d564dfb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x01\x08\x01v\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________________ TestComment.test_basic ____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestComment testMethod=test_basic>
[  256s] 
[  256s]     def test_basic(self):
[  256s] >       perform('<div><!-- This comment is preserved. -->'
[  256s]                 '<!--! This comment is stripped. --></div>',
[  256s]                 '<div><!--  This comment is preserved.  --></div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:733: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5405620, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestAttributes.test_attrs ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_attrs>
[  256s] 
[  256s]     def test_attrs(self):
[  256s] >       perform('<div py:attrs="dict(a=5, b=6)"/>',   '<div a="5" b="6"/>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:749: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56abeb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00b\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestAttributes.test_basic ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_basic>
[  256s] 
[  256s]     def test_basic(self):
[  256s] >       perform('''<div id="foo"/>''',   '<div id="foo"/>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:740: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555cdb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestAttributes.test_content __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_content>
[  256s] 
[  256s]     def test_content(self):
[  256s] >       perform('''<div py:content="'foo'"/>''',   '<div>foo</div>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:743: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561d110, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestAttributes.test_escape_attr_values ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_escape_attr_values>
[  256s] 
[  256s]     def test_escape_attr_values(self):
[  256s]         '''Escape static and dynamic attribute values.'''
[  256s]         context = dict(url='https://domain.com/path?a=1&b=2')
[  256s]         source = '''<a title='"Ha!"' href="$url">Link</a>'''
[  256s]         output = '<a href="https://domain.com/path?a=1&amp;b=2" ' \
[  256s]                  'title="&quot;Ha!&quot;">Link</a>'
[  256s] >       perform(source, output, context, mode='html')
[  256s] 
[  256s] kajiki/tests/test_xml.py:792: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555c5cc20, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x06\x00N\x00H\x00\n\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ________________________ TestAttributes.test_html_attrs ________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_html_attrs>
[  256s] 
[  256s]     def test_html_attrs(self):
[  256s]         TPL = '<input type="checkbox" checked="$checked"/>'
[  256s]         context0 = dict(checked=None)
[  256s]         context1 = dict(checked=True)
[  256s] >       perform(TPL, '<input type="checkbox"/>', context0, mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:768: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x555555cc8140, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x06\x00N\x00H\x00\n\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________________ TestAttributes.test_replace __________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_replace>
[  256s] 
[  256s]     def test_replace(self):
[  256s] >       perform('''<div py:replace="'foo'"/>''',   'foo')
[  256s] 
[  256s] kajiki/tests/test_xml.py:746: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56f3220, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0, lnotab = b'\x00\x00\x06\x01'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________________ TestAttributes.test_strip ___________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_strip>
[  256s] 
[  256s]     def test_strip(self):
[  256s]         TPL = '<div><h1 py:strip="header">Header</h1></div>'
[  256s] >       perform(TPL, '<div>Header</div>', context=dict(header=True))
[  256s] 
[  256s] kajiki/tests/test_xml.py:759: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56abaf0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x16\x00B\x00\x16\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestAttributes.test_xml_namespaces ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestAttributes testMethod=test_xml_namespaces>
[  256s] 
[  256s]     def test_xml_namespaces(self):
[  256s]         '''Namespaced attributes pass through.'''
[  256s]         TPL = '<p xml:lang="en">English text</p>'
[  256s] >       perform(TPL, TPL, mode='xml')
[  256s] 
[  256s] kajiki/tests/test_xml.py:783: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57a3120, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________________ TestDebug.test_debug _____________________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestDebug testMethod=test_debug>
[  256s] 
[  256s]     def test_debug(self):
[  256s]         loader = FileLoader(path=os.path.join(os.path.dirname(__file__),
[  256s]                             'data'))
[  256s] >       tpl = loader.import_('debug.html')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:800: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:62: in <lambda>
[  256s]     html=lambda *a, **kw: XMLTemplate(mode='html', *a, **kw),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55335a0, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/debug.html'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\x01\x08\x06Z\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestPackageLoader.test_pkg_loader _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestPackageLoader testMethod=test_pkg_loader>
[  256s] 
[  256s]     def test_pkg_loader(self):
[  256s]         loader = PackageLoader()
[  256s] >       loader.import_('kajiki.tests.data.debug')
[  256s] 
[  256s] kajiki/tests/test_xml.py:818: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:62: in <lambda>
[  256s]     html=lambda *a, **kw: XMLTemplate(mode='html', *a, **kw),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5533800, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/debug.html'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\x01\x08\x06Z\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestBuiltinFunctions.test_defined _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBuiltinFunctions testMethod=test_defined>
[  256s] 
[  256s]         def test_defined(self):
[  256s] >           perform('''<div>\
[  256s]     <div py:if="defined('albatross')">$albatross</div>\
[  256s]     <p py:if="defined('parrot')">$parrot</p></div>''',
[  256s]     expected_output='<div><p>Bereft of life, it rests in peace</p></div>',
[  256s]     context=dict(parrot='Bereft of life, it rests in peace'))
[  256s] 
[  256s] kajiki/tests/test_xml.py:823: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d57a3860, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x1e\x00\x08\x00L\x00\x08\x00\x1e\x00\x08\x00L\x00\x08\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestBuiltinFunctions.test_literal _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBuiltinFunctions testMethod=test_literal>
[  256s] 
[  256s]     def test_literal(self):
[  256s]         '''Escape by default; literal() marks as safe.'''
[  256s]         context = dict(albatross="<em>Albatross!!!</em>")
[  256s]         expected_output = "<p><em>Albatross!!!</em></p>"
[  256s] >       perform("<p>${literal(albatross)}</p>", expected_output, context)
[  256s] 
[  256s] kajiki/tests/test_xml.py:839: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d56ab9b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00f\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestBuiltinFunctions.test_value_of ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBuiltinFunctions testMethod=test_value_of>
[  256s] 
[  256s]     def test_value_of(self):
[  256s]         TPL = "<p>${value_of('albatross', 'Albatross!!!')}</p>"
[  256s] >       perform(TPL,
[  256s]             expected_output="<p>It's</p>", context=dict(albatross="It's"))
[  256s] 
[  256s] kajiki/tests/test_xml.py:831: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5532fb0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00^\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] __________________ TestTranslation.test_extract_python_inside __________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_extract_python_inside>
[  256s] 
[  256s]     def test_extract_python_inside(self):
[  256s]         src = '''<xml><div>${_('hi')}</div><p>
[  256s]     
[  256s]         Hello
[  256s]         World</p></xml>'''
[  256s]         expected = '''<xml><div>xi</div><p>\n\n        TRANSLATED(Hello
[  256s]         World)</p></xml>'''
[  256s]     
[  256s]         # Build translation table
[  256s]         messages = {'hi': 'xi'}
[  256s]         for _, _, msgid, _ in i18n.extract(BytesIO(src.encode('utf-8')), [], None, {
[  256s]             'extract_python': True
[  256s]         }):
[  256s]             messages[msgid] = 'TRANSLATED(%s)' % msgid
[  256s]     
[  256s]         # Provide a fake translation function
[  256s]         default_gettext = i18n.gettext
[  256s]         i18n.gettext = lambda s: messages[s]
[  256s]         try:
[  256s] >           perform(src, expected)
[  256s] 
[  256s] kajiki/tests/test_xml.py:910: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555e2b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\\\x00\x08\x02B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestTranslation.test_extract_translate ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_extract_translate>
[  256s] 
[  256s]     def test_extract_translate(self):
[  256s]         src = '''<xml><div>Hi</div><p>
[  256s]     
[  256s]         Hello
[  256s]         World</p></xml>'''
[  256s]         expected = {
[  256s]             False: '''<xml><div>TRANSLATED(Hi)</div><p>\n\n        TRANSLATED(Hello
[  256s]         World)</p></xml>''',
[  256s]             True: '''<xml><div>TRANSLATED(Hi)</div><p>TRANSLATED(Hello
[  256s]         World)</p></xml>'''
[  256s]         }
[  256s]     
[  256s]         for strip_text in (False, True):
[  256s]             # Build translation table
[  256s]             messages = {}
[  256s]             for _, _, msgid, _ in i18n.extract(BytesIO(src.encode('utf-8')), None, None, {
[  256s]                 'strip_text': strip_text
[  256s]             }):
[  256s]                 messages[msgid] = 'TRANSLATED(%s)' % msgid
[  256s]     
[  256s]             # Provide a fake translation function
[  256s]             default_gettext = i18n.gettext
[  256s]             i18n.gettext = lambda s: messages[s]
[  256s]             try:
[  256s] >               perform(src, expected[strip_text], strip_text=strip_text)
[  256s] 
[  256s] kajiki/tests/test_xml.py:887: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55371b0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00\x08\x02B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________ TestTranslation.test_substituting_gettext_with_lambda _____________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_substituting_gettext_with_lambda>
[  256s] 
[  256s]     def test_substituting_gettext_with_lambda(self):
[  256s]         src = '''<xml>hi</xml>'''
[  256s]         expected = '''<xml>spam</xml>'''
[  256s]     
[  256s] >       perform(src, expected, context=dict(gettext=lambda x: 'spam'))
[  256s] 
[  256s] kajiki/tests/test_xml.py:929: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c69d0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______ TestTranslation.test_substituting_gettext_with_lambda_extending ________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_substituting_gettext_with_lambda_extending>
[  256s] 
[  256s]     def test_substituting_gettext_with_lambda_extending(self):
[  256s]         gettext = lambda x: 'egg'
[  256s]         loader = MockLoader({
[  256s] >           'parent.html': XMLTemplate('''<div>parent</div>'''),
[  256s]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'child.html': XMLTemplate('''<py:extends href="parent.html"><div>child</div></py:extends>''')})
[  256s] 
[  256s] kajiki/tests/test_xml.py:934: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c6550, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____ TestTranslation.test_substituting_gettext_with_lambda_extending_file _____
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_substituting_gettext_with_lambda_extending_file>
[  256s] 
[  256s]     def test_substituting_gettext_with_lambda_extending_file(self):
[  256s]         loader = FileLoader(path=os.path.join(os.path.dirname(__file__),
[  256s]                             'data'), base_globals=dict(gettext=lambda x: 'egg'))
[  256s] >       tpl = loader.import_('file_child.html')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:954: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:62: in <lambda>
[  256s]     html=lambda *a, **kw: XMLTemplate(mode='html', *a, **kw),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555e430, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/file_child.html'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\x01f\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____ TestTranslation.test_substituting_gettext_with_lambda_extending_twice _____
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_substituting_gettext_with_lambda_extending_twice>
[  256s] 
[  256s]     def test_substituting_gettext_with_lambda_extending_twice(self):
[  256s]         gettext = lambda x: 'egg'
[  256s]         loader = MockLoader({
[  256s] >           'parent.html': XMLTemplate('''<div>parent</div>'''),
[  256s]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s]             'mid.html': XMLTemplate('''<py:extends href="parent.html"><div>${variable}</div></py:extends>'''),
[  256s]             'child.html': XMLTemplate('''<py:extends href="mid.html"><div>child</div></py:extends>''')})
[  256s] 
[  256s] kajiki/tests/test_xml.py:943: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561f2d0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _ TestTranslation.test_without_substituting_gettext_with_lambda_extending_file _
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestTranslation testMethod=test_without_substituting_gettext_with_lambda_extending_file>
[  256s] 
[  256s]     def test_without_substituting_gettext_with_lambda_extending_file(self):
[  256s]         # this should use i18n.gettext
[  256s]         loader = FileLoader(path=os.path.join(os.path.dirname(__file__),
[  256s]                             'data'))
[  256s] >       tpl = loader.import_('file_child.html')
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:962: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:62: in <lambda>
[  256s]     html=lambda *a, **kw: XMLTemplate(mode='html', *a, **kw),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d555e5b0, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/file_child.html'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\x01f\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestErrorReporting.test_code_error ______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestErrorReporting testMethod=test_code_error>
[  256s] 
[  256s]     def test_code_error(self):
[  256s]         for strip_text in (False, True):
[  256s]             try:
[  256s]                 child = FileLoader(
[  256s]                     os.path.join(os.path.dirname(__file__), 'data')
[  256s] >               ).load('error.html', strip_text=strip_text)
[  256s]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:1000: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/loader.py:78: in import_
[  256s]     return super(FileLoader, self).import_(name, *args, **kwargs)
[  256s]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:21: in import_
[  256s]     mod = self._load(name, *args, **kwargs)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/loader.py:103: in _load
[  256s]     return self.extension_map[ext](
[  256s] kajiki/loader.py:62: in <lambda>
[  256s]     html=lambda *a, **kw: XMLTemplate(mode='html', *a, **kw),
[  256s]                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561f990, file "<string>", line 2>
[  256s] filename = '/home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/tests/data/error.html'
[  256s] firstlineno = 0, lnotab = b'\x00\x00\x06\x01\x08\x03H\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________ TestBracketsInExpression.test_brackets_asymmetric _______________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBracketsInExpression testMethod=test_brackets_asymmetric>
[  256s] 
[  256s]     def test_brackets_asymmetric(self):
[  256s] >       perform('<x>${\'{o{k}k  { \'}</x>', '<x>{o{k}k  { </x>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:1019: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d55c6790, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestBracketsInExpression.test_complex _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBracketsInExpression testMethod=test_complex>
[  256s] 
[  256s]     def test_complex(self):
[  256s] >       perform(u"<xml><div>${'ciao {  } {' + \"a {} b {{{{} w}}rar\"}${'sd{}'} ${1+1}</div></xml>",
[  256s]                 u"<xml><div>ciao {  } {a {} b {{{{} w}}rarsd{} 2</div></xml>")
[  256s] 
[  256s] kajiki/tests/test_xml.py:1022: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5697df0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00B\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _____________________ TestBracketsInExpression.test_simple _____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBracketsInExpression testMethod=test_simple>
[  256s] 
[  256s]     def test_simple(self):
[  256s] >       perform('<x>${\'ok\'}</x>', '<x>ok</x>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:1013: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561ee50, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _________________ TestBracketsInExpression.test_some_brackets __________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBracketsInExpression testMethod=test_some_brackets>
[  256s] 
[  256s]     def test_some_brackets(self):
[  256s] >       perform('<x>${\'{ok}\'}</x>', '<x>{ok}</x>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:1016: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561c6f0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] _______________ TestBracketsInExpression.test_with_padding_space _______________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestBracketsInExpression testMethod=test_with_padding_space>
[  256s] 
[  256s]     def test_with_padding_space(self):
[  256s] >       perform('<x y="${ 1 + 1}"> ${  "hello"     +   "world"   }  </x>',
[  256s]                 '<x y="2"> helloworld  </x>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:1026: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/tests/test_xml.py:74: in perform
[  256s]     tpl = XMLTemplate(source, **options)
[  256s]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d5284b10, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00\x06\x00N\x00H\x00\n\x00\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ____________________ TestMultipleChildrenInDOM.test_comment ____________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestMultipleChildrenInDOM testMethod=test_comment>
[  256s] 
[  256s]     def test_comment(self):
[  256s] >       res = XMLTemplate('<!-- a --><x>${1+1}</x>')().render()
[  256s]               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] 
[  256s] kajiki/tests/test_xml.py:1065: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561fcf0, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] ______________________ TestMultipleChildrenInDOM.test_ok _______________________
[  256s] 
[  256s] self = <kajiki.tests.test_xml.TestMultipleChildrenInDOM testMethod=test_ok>
[  256s] 
[  256s]     def test_ok(self):
[  256s] >       XMLTemplate('<xml><!--  a  --><x>${1+1}</x></xml>')
[  256s] 
[  256s] kajiki/tests/test_xml.py:1062: 
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] kajiki/xml_template.py:56: in XMLTemplate
[  256s]     t = template.from_ir(ir_, base_globals=base_globals)
[  256s]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] kajiki/template.py:331: in from_ir
[  256s]     tpl.annotate_lnotab(py_linenos)
[  256s] kajiki/template.py:265: in annotate_lnotab
[  256s]     meth.annotate_lnotab(cls.filename, py_to_tpl, dict(py_to_tpl))
[  256s] kajiki/template.py:397: in annotate_lnotab
[  256s]     new_code = patch_code_file_lines(
[  256s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[  256s] 
[  256s] code = <code object __main__ at 0x7fa3d561f090, file "<string>", line 2>
[  256s] filename = '<string>', firstlineno = 0
[  256s] lnotab = b'\x00\x00\x06\x01\x08\x00B\x00'
[  256s] 
[  256s]     def patch_code_file_lines(code, filename, firstlineno, lnotab):
[  256s]         code_args = [code.co_argcount]
[  256s]         if version_info >= (3, 8):
[  256s]             code_args.append(code.co_posonlyargcount)
[  256s]         code_args.extend([
[  256s]             code.co_kwonlyargcount,
[  256s]             code.co_nlocals,
[  256s]             code.co_stacksize,
[  256s]             code.co_flags,
[  256s]             code.co_code,
[  256s]             code.co_consts,
[  256s]             code.co_names,
[  256s]             code.co_varnames,
[  256s]             filename,
[  256s]             code.co_name,
[  256s]             firstlineno,
[  256s]             lnotab,
[  256s]             code.co_freevars,
[  256s]             code.co_cellvars,
[  256s]         ])
[  256s] >       return types.CodeType(*code_args)
[  256s]                ^^^^^^^^^^^^^^^^^^^^^^^^^^
[  256s] E       TypeError: code() argument 13 must be str, not int
[  256s] 
[  256s] kajiki/template.py:440: TypeError
[  256s] =============================== warnings summary ===============================
[  256s] kajiki/loader.py:7
[  256s]   /home/abuild/rpmbuild/BUILD/python-Kajiki-0.8.3-build/kajiki-0.8.3/kajiki/loader.py:7: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
[  256s]     import pkg_resources
[  256s] 
[  256s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[  256s] =========================== short test summary info ============================
[  256s] FAILED kajiki/tests/test_ir.py::TestBasic::test - TypeError: code() argument ...
[  256s] FAILED kajiki/tests/test_ir.py::TestSwitch::test_basic - TypeError: code() ar...
[  256s] FAILED kajiki/tests/test_ir.py::TestFunction::test_basic - TypeError: code() ...
[  256s] FAILED kajiki/tests/test_ir.py::TestCall::test_basic - TypeError: code() argu...
[  256s] FAILED kajiki/tests/test_ir.py::TestImport::test_import - TypeError: code() a...
[  256s] FAILED kajiki/tests/test_ir.py::TestInclude::test_include - TypeError: code()...
[  256s] FAILED kajiki/tests/test_ir.py::TestExtends::test_extends - TypeError: code()...
[  256s] FAILED kajiki/tests/test_ir.py::TestDynamicExtends::test_extends - TypeError:...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_auto_escape - TypeError: co...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_auto_escape_disable - TypeE...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_expr_None - TypeError: code...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_expr_brace - TypeError: cod...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_expr_brace_complex - TypeEr...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_expr_multiline - TypeError:...
[  256s] FAILED kajiki/tests/test_text.py::TestBasic::test_expr_name - TypeError: code...
[  256s] FAILED kajiki/tests/test_text.py::TestSwitch::test_ljust - TypeError: code() ...
[  256s] FAILED kajiki/tests/test_text.py::TestSwitch::test_rstrip - TypeError: code()...
[  257s] FAILED kajiki/tests/test_text.py::TestSwitch::test_switch - TypeError: code()...
[  257s] FAILED kajiki/tests/test_text.py::TestFunction::test_function - TypeError: co...
[  257s] FAILED kajiki/tests/test_text.py::TestCall::test_call - TypeError: code() arg...
[  257s] FAILED kajiki/tests/test_text.py::TestImport::test_import_auto - TypeError: c...
[  257s] FAILED kajiki/tests/test_text.py::TestImport::test_import_simple - TypeError:...
[  257s] FAILED kajiki/tests/test_text.py::TestImport::test_include - TypeError: code(...
[  257s] FAILED kajiki/tests/test_text.py::TestExtends::test_basic - TypeError: code()...
[  257s] FAILED kajiki/tests/test_text.py::TestExtends::test_block - TypeError: code()...
[  257s] FAILED kajiki/tests/test_text.py::TestExtends::test_dynamic - TypeError: code...
[  257s] FAILED kajiki/tests/test_text.py::TestClosure::test - TypeError: code() argum...
[  257s] FAILED kajiki/tests/test_text.py::TestPython::test_basic - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_text.py::TestPython::test_indent - TypeError: code()...
[  257s] FAILED kajiki/tests/test_text.py::TestPython::test_mod - TypeError: code() ar...
[  257s] FAILED kajiki/tests/test_text.py::TestPython::test_short - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_text.py::TestDebug::test_debug - TypeError: code() a...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_CDATA_disabled - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_CDATA_escaping - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_CDATA_escaping_mixed - Type...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_double_escape_dollar - Type...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_empty_attr - TypeError: cod...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_escape_dollar - TypeError: ...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_escape_dollar_followed_by_dollar
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_expr_brace_complex - TypeEr...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_expr_braced - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_expr_multiline - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_expr_multiline_cdata - Type...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_expr_name - TypeError: code...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_html_entities - TypeError: ...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_jquery_call_is_not_expr - T...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_jquery_shortcut_is_not_expr
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_pre_whitespace - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_preserve_dollar_not_variable_brace
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_script - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_script_commented_CDATA - Ty...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_script_escaping - TypeError...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_script_variable - TypeError...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_style_escaping - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_textarea_whitespace - TypeE...
[  257s] FAILED kajiki/tests/test_xml.py::TestSimple::test_xml_entities - TypeError: c...
[  257s] FAILED kajiki/tests/test_xml.py::TestSwitch::test_case_elem - TypeError: code...
[  257s] FAILED kajiki/tests/test_xml.py::TestSwitch::test_switch - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestSwitch::test_switch_multi - TypeError: c...
[  257s] FAILED kajiki/tests/test_xml.py::TestElse::test_pyif_pyelse_continuation - Ty...
[  257s] FAILED kajiki/tests/test_xml.py::TestElse::test_pyiftag_pyelse_continuation
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_standalone - TypeError: code(...
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with - TypeError: code() argu...
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with_multiple - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with_multiple_and_whitespace
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with_multiple_with_embedded_semicolons
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with_ordered_multiple - TypeE...
[  257s] FAILED kajiki/tests/test_xml.py::TestWith::test_with_trailing_semicolon - Typ...
[  257s] FAILED kajiki/tests/test_xml.py::TestFunction::test_empty_function - TypeErro...
[  257s] FAILED kajiki/tests/test_xml.py::TestFunction::test_function - TypeError: cod...
[  257s] FAILED kajiki/tests/test_xml.py::TestFunction::test_function_in_attr - TypeEr...
[  257s] FAILED kajiki/tests/test_xml.py::TestCall::test_call - TypeError: code() argu...
[  257s] FAILED kajiki/tests/test_xml.py::TestImport::test_import - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestImport::test_import_auto - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestImport::test_include - TypeError: code()...
[  257s] FAILED kajiki/tests/test_xml.py::TestImport::test_include_html5 - TypeError: ...
[  257s] FAILED kajiki/tests/test_xml.py::TestExtends::test_autoblocks - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestExtends::test_autoblocks_disabling - Typ...
[  257s] FAILED kajiki/tests/test_xml.py::TestExtends::test_basic - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestExtends::test_block - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestExtends::test_dynamic - TypeError: code(...
[  257s] FAILED kajiki/tests/test_xml.py::TestClosure::test - TypeError: code() argume...
[  257s] FAILED kajiki/tests/test_xml.py::TestPython::test_basic - TypeError: code() a...
[  257s] FAILED kajiki/tests/test_xml.py::TestPython::test_indent - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestPython::test_mod - TypeError: code() arg...
[  257s] FAILED kajiki/tests/test_xml.py::TestPython::test_short - TypeError: code() a...
[  257s] FAILED kajiki/tests/test_xml.py::TestComment::test_basic - TypeError: code() ...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_attrs - TypeError: code...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_basic - TypeError: code...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_content - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_escape_attr_values - Ty...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_html_attrs - TypeError:...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_replace - TypeError: co...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_strip - TypeError: code...
[  257s] FAILED kajiki/tests/test_xml.py::TestAttributes::test_xml_namespaces - TypeEr...
[  257s] FAILED kajiki/tests/test_xml.py::TestDebug::test_debug - TypeError: code() ar...
[  257s] FAILED kajiki/tests/test_xml.py::TestPackageLoader::test_pkg_loader - TypeErr...
[  257s] FAILED kajiki/tests/test_xml.py::TestBuiltinFunctions::test_defined - TypeErr...
[  257s] FAILED kajiki/tests/test_xml.py::TestBuiltinFunctions::test_literal - TypeErr...
[  257s] FAILED kajiki/tests/test_xml.py::TestBuiltinFunctions::test_value_of - TypeEr...
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_extract_python_inside
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_extract_translate - Ty...
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending_file
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_substituting_gettext_with_lambda_extending_twice
[  257s] FAILED kajiki/tests/test_xml.py::TestTranslation::test_without_substituting_gettext_with_lambda_extending_file
[  257s] FAILED kajiki/tests/test_xml.py::TestErrorReporting::test_code_error - TypeEr...
[  257s] FAILED kajiki/tests/test_xml.py::TestBracketsInExpression::test_brackets_asymmetric
[  257s] FAILED kajiki/tests/test_xml.py::TestBracketsInExpression::test_complex - Typ...
[  257s] FAILED kajiki/tests/test_xml.py::TestBracketsInExpression::test_simple - Type...
[  257s] FAILED kajiki/tests/test_xml.py::TestBracketsInExpression::test_some_brackets
[  257s] FAILED kajiki/tests/test_xml.py::TestBracketsInExpression::test_with_padding_space
[  257s] FAILED kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_comment - Ty...
[  257s] FAILED kajiki/tests/test_xml.py::TestMultipleChildrenInDOM::test_ok - TypeErr...
[  257s] ================== 115 failed, 32 passed, 1 warning in 51.00s ==================
[  257s] error: Bad exit status from /var/tmp/rpm-tmp.KDFaRW (%check)
[  257s] 
[  257s] RPM build errors:
[  257s]     Bad exit status from /var/tmp/rpm-tmp.KDFaRW (%check)
[  257s] ### VM INTERACTION START ###
[  257s] mount: /: mount point is busy.
[  257s]        dmesg(1) may have more information after failed mount system call.
[  257s] Warning: 'remount -o ro /' failed. Triple Syncing..
[  257s] [  253.282636][    T1] sysrq: Power Off
[  257s] ### VM INTERACTION END ###
[  257s] 
[  257s] i02-ch1d failed "build python-Kajiki.spec" at Fri Aug 22 22:56:24 UTC 2025.
[  257s] 
openSUSE Build Service is sponsored by