File obs_log_None_standard_riscv64.txt of Package failed_python-cpplint
[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_20/.mount
[ 0s] Using BUILD_ARCH=riscv64
[ 0s] Doing kvm build in /var/cache/obs/worker/root_20/root
[ 0s]
[ 0s]
[ 0s] i03-ch2d started "build python-cpplint.spec" at Fri Aug 22 22:52:27 UTC 2025.
[ 0s]
[ 0s] Building failed_python-cpplint for project 'home:lalala123:RISCV_test1' repository 'standard' arch 'riscv64' srcmd5 'b1e7fe95673e9d64f6fb343cfbeceb56'
[ 0s]
[ 0s] processing recipe /var/cache/obs/worker/root_20/.build-srcdir/python-cpplint.spec ...
[ 0s] running changelog2spec --target rpm --file /var/cache/obs/worker/root_20/.build-srcdir/python-cpplint.spec
[ 0s] init_buildsystem --configdir /var/run/obs/worker/20/build/configs --cachedir /var/cache/build --prepare --clean --rpmlist /var/cache/obs/worker/root_20/.build.rpmlist /var/cache/obs/worker/root_20/.build-srcdir/python-cpplint.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...
[ 2s] [19/28] preinstalling libzstd1...
[ 2s] [20/28] preinstalling libncurses6...
[ 2s] [21/28] preinstalling libreadline8...
[ 2s] [22/28] preinstalling libselinux1...
[ 2s] [23/28] preinstalling libgcrypt20...
[ 2s] [24/28] preinstalling bash...
[ 2s] [25/28] preinstalling bash-sh...
[ 2s] [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...
[ 3s] [18/18] preinstalling util-linux...
[ 3s] 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_20/.mount/boot/kernel -initrd /var/cache/obs/worker/root_20/.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_20/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_20/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_20/root.qemu/monitor -mon chardev=monitor,mode=readline -smp 4
[ 5s] [!p]104[?7h[ 0.715270][ T1] systemd[1]: Failed to start Virtual Console Setup.
[ 5s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mVirtual Console Setup[0m.
[ 7s] [[0;1;31mFAILED[0m] Failed to start [0;1;39mVirtual Console Setup[0m.
[ 8s] [6n[32766;32766H[6n[!p]104[?7h### VM INTERACTION END ###
[ 8s] 2nd stage started in virtual machine
[ 8s] ^[[24;10R^[[24;80Rmachine type: riscv64
[ 8s] Linux version: 6.16.1-1-default #1 SMP PREEMPT_DYNAMIC Fri Aug 15 16:49:58 UTC 2025 (2e1765c)
[ 8s] Time: Fri Aug 22 22:52:34 UTC 2025
[ 8s] Increasing log level from now on...
[ 8s] [ 3.479273][ T579] sysrq: Changing Loglevel
[ 8s] [ 3.479367][ T579] sysrq: Loglevel set to 4
[ 8s] Enable sysrq operations
[ 8s] Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
[ 8s] no label, UUID=c16c9ccb-50fc-49bf-9725-3859324a43aa
[ 9s] WARNING: udev not running, creating extra device nodes
[ 9s] logging output to //.build.log...
[ 9s] processing recipe //.build-srcdir/python-cpplint.spec ...
[ 9s] init_buildsystem --configdir /.build/configs --cachedir /var/cache/build //.build-srcdir/python-cpplint.spec build ...
[ 9s] initializing rpm db...
[ 10s] querying package ids...
[ 19s] [1/162] cumulate compat-usrmerge-tools-84.87-5.5
[ 19s] [2/162] cumulate crypto-policies-20250124.4d262e7-4.1
[ 19s] [3/162] cumulate file-magic-5.46-4.1
[ 19s] [4/162] cumulate kernel-obs-build-6.16.1-1.1
[ 19s] [5/162] cumulate pkgconf-m4-2.2.0-1.1
[ 19s] [6/162] cumulate python-rpm-macros-20241120.6ae645f-1.2
[ 19s] [7/162] cumulate system-user-root-20190513-2.4
[ 19s] [8/162] cumulate terminfo-base-6.5.20250809-80.1
[ 19s] [9/162] cumulate filesystem-84.87-18.1
[ 19s] [10/162] cumulate glibc-2.42-1.1
[ 19s] [11/162] cumulate diffutils-3.12-1.1
[ 19s] [12/162] cumulate envsubst-mini-0.26-2.1
[ 19s] [13/162] cumulate fillup-1.42-281.1
[ 19s] [14/162] cumulate glibc-gconv-modules-extra-2.42-1.1
[ 19s] [15/162] cumulate glibc-locale-base-2.42-1.1
[ 19s] [16/162] cumulate libacl1-2.3.2-2.1
[ 19s] [17/162] cumulate libalternatives1-1.2+31.da24cd4-1.1
[ 19s] [18/162] cumulate libatomic1-15.1.1+git10189-1.1
[ 19s] [19/162] cumulate libattr1-2.5.2-1.1
[ 19s] [20/162] cumulate libaudit1-4.0.2-4.1
[ 19s] [21/162] cumulate libbz2-1-1.0.8-5.3
[ 19s] [22/162] cumulate libcap-ng0-0.8.5-1.1
[ 19s] [23/162] cumulate libcap2-2.75-1.1
[ 19s] [24/162] cumulate libcrypt1-4.4.38-1.1
[ 19s] [25/162] cumulate libeconf0-0.7.10-1.1
[ 19s] [26/162] cumulate libexpat1-2.7.1-2.1
[ 19s] [27/162] cumulate libffi8-3.4.7-1.1
[ 19s] [28/162] cumulate libgcc_s1-15.1.1+git10189-1.1
[ 19s] [29/162] cumulate libgdbm6-1.24-2.1
[ 19s] [30/162] cumulate libgmp10-6.3.0-5.1
[ 19s] [31/162] cumulate libgomp1-15.1.1+git10189-1.1
[ 19s] [32/162] cumulate libgpg-error0-1.55-1.1
[ 19s] [33/162] cumulate libitm1-15.1.1+git10189-1.1
[ 19s] [34/162] cumulate libjitterentropy3-3.6.3-1.1
[ 19s] [35/162] cumulate liblua5_4-5-5.4.8-3.1
[ 19s] [36/162] cumulate liblz1-1.15-1.1
[ 19s] [37/162] cumulate liblz4-1-1.10.0-2.1
[ 19s] [38/162] cumulate liblzma5-5.8.1-1.1
[ 19s] [39/162] cumulate libmpdec4-4.0.1-2.1
[ 19s] [40/162] cumulate libpcre2-8-0-10.45-2.1
[ 19s] [41/162] cumulate libpkgconf5-2.2.0-1.1
[ 19s] [42/162] cumulate libpopt0-1.19-1.4
[ 19s] [43/162] cumulate libseccomp2-2.6.0-2.1
[ 19s] [44/162] cumulate libsmartcols1-2.41.1-3.1
[ 19s] [45/162] cumulate libuuid1-2.41.1-3.1
[ 19s] [46/162] cumulate libz1-1.3.1-1.1
[ 19s] [47/162] cumulate libzstd1-1.5.7-3.1
[ 19s] [48/162] cumulate patch-2.8-1.1
[ 19s] [49/162] cumulate update-alternatives-1.22.21-1.1
[ 19s] [50/162] cumulate which-2.23-1.1
[ 19s] [51/162] cumulate libncurses6-6.5.20250809-80.1
[ 19s] [52/162] cumulate alts-1.2+31.da24cd4-1.1
[ 19s] [53/162] cumulate libblkid1-2.41.1-3.1
[ 19s] [54/162] cumulate libctf-nobfd0-2.43-10.1
[ 19s] [55/162] cumulate libgdbm_compat4-1.24-2.1
[ 19s] [56/162] cumulate libisl23-0.27-1.1
[ 19s] [57/162] cumulate libmpfr6-4.2.2-1.1
[ 19s] [58/162] cumulate libreadline8-8.3.1-1.1
[ 19s] [59/162] cumulate libselinux1-3.9-2.1
[ 19s] [60/162] cumulate libstdc++6-15.1.1+git10189-1.1
[ 19s] [61/162] cumulate ncurses-utils-6.5.20250809-80.1
[ 19s] [62/162] cumulate perl-base-5.42.0-1.1
[ 19s] [63/162] cumulate pkgconf-2.2.0-1.1
[ 19s] [64/162] cumulate libelf1-0.192-2.1
[ 19s] [65/162] cumulate libgcrypt20-1.11.2-6.1
[ 19s] [66/162] cumulate libxml2-2-2.13.8-3.1
[ 19s] [67/162] cumulate permctl-1699_20250120-1.2
[ 19s] [68/162] cumulate libmagic1-5.46-4.1
[ 19s] [69/162] cumulate build-mkbaselibs-20250708-1.1
[ 19s] [70/162] cumulate bash-5.3.3-1.1
[ 19s] [71/162] cumulate dwz-0.15-6.1
[ 19s] [72/162] cumulate findutils-4.10.0-2.1
[ 19s] [73/162] cumulate fdupes-2.4.0-1.1
[ 19s] [74/162] cumulate file-5.46-4.1
[ 19s] [75/162] cumulate libasan8-15.1.1+git10189-1.1
[ 19s] [76/162] cumulate libfdisk1-2.41.1-3.1
[ 19s] [77/162] cumulate liblsan0-15.1.1+git10189-1.1
[ 19s] [78/162] cumulate libmount1-2.41.1-3.1
[ 19s] [79/162] cumulate libmpc3-1.3.1-1.5
[ 19s] [80/162] cumulate libtsan2-15.1.1+git10189-1.1
[ 19s] [81/162] cumulate libubsan1-15.1.1+git10189-1.1
[ 19s] [82/162] cumulate sed-4.9-2.2
[ 19s] [83/162] cumulate tar-1.35-4.1
[ 19s] [84/162] cumulate libdw1-0.192-2.1
[ 19s] [85/162] cumulate perl-5.42.0-1.1
[ 19s] [86/162] cumulate bash-sh-5.3.3-1.1
[ 19s] [87/162] cumulate brp-check-suse-84.87+git20230324.8680ce4-1.1
[ 19s] [88/162] cumulate perl-rpm-packaging-1.2-1.1
[ 19s] [89/162] cumulate libasm1-0.192-2.1
[ 19s] [90/162] cumulate cpp15-15.1.1+git10189-1.1
[ 19s] [91/162] cumulate qemu-linux-user-10.0.3-83.1
[ 19s] [92/162] cumulate cpio-2.15-6.1
[ 19s] [93/162] cumulate cpp-15-1.1
[ 19s] [94/162] cumulate gzip-1.14-1.1
[ 19s] [95/162] cumulate make-4.4.1-3.1
[ 19s] [96/162] cumulate bzip2-1.0.8-5.3
[ 19s] [97/162] cumulate grep-3.12-1.1
[ 19s] [98/162] cumulate pkgconf-pkg-config-2.2.0-1.1
[ 19s] [99/162] cumulate xz-5.8.1-1.1
[ 19s] [100/162] cumulate gettext-runtime-mini-0.26-2.1
[ 19s] [101/162] cumulate gawk-5.3.2-1.1
[ 19s] [102/162] cumulate coreutils-9.7-3.1
[ 19s] [103/162] cumulate elfutils-0.192-2.1
[ 19s] [104/162] cumulate linux-glibc-devel-6.16-1.1
[ 19s] [105/162] cumulate systemd-rpm-macros-26-1.1
[ 19s] [106/162] cumulate libxcrypt-devel-4.4.38-1.1
[ 19s] [107/162] cumulate libopenssl3-3.5.2-1.1
[ 19s] [108/162] cumulate permissions-config-1699_20250120-1.2
[ 19s] [109/162] cumulate polkit-default-privs-1550+20250721.f1b71a3-1.1
[ 19s] [110/162] cumulate gettext-tools-mini-0.26-2.1
[ 19s] [111/162] cumulate aaa_base-84.87+git20250805.3069494-1.1
[ 19s] [112/162] cumulate aaa_base-malloccheck-84.87+git20250805.3069494-1.1
[ 19s] [113/162] cumulate permissions-1699_20250120-1.2
[ 19s] [114/162] cumulate glibc-devel-2.42-1.1
[ 19s] [115/162] cumulate rpmlint-mini-2.7.0+git20250710.a7f0a67c-18.42
[ 19s] [116/162] cumulate libarchive13-3.8.1-1.1
[ 19s] [117/162] cumulate pam-1.7.1-3.1
[ 19s] [118/162] cumulate post-build-checks-84.87+git20250725.0c3a172-1.1
[ 19s] [119/162] cumulate util-linux-2.41.1-3.1
[ 19s] [120/162] cumulate rpm-config-SUSE-20250423-1.1
[ 19s] [121/162] cumulate libctf0-2.43-10.1
[ 19s] [122/162] cumulate lua54-5.4.8-3.1
[ 19s] [123/162] cumulate python313-base-3.13.7-4.2
[ 19s] [124/162] cumulate python311-base-3.11.13-7.1
[ 19s] [125/162] cumulate python312-base-3.12.11-4.1
[ 19s] [126/162] cumulate compat-usrmerge-build-84.87-5.5
[ 19s] [127/162] cumulate python311-iniconfig-2.1.0-1.1
[ 19s] [128/162] cumulate python311-packaging-25.0-1.1
[ 19s] [129/162] cumulate python311-pluggy-1.6.0-1.1
[ 19s] [130/162] cumulate python311-testfixtures-8.3.0-2.4
[ 19s] [131/162] cumulate python312-iniconfig-2.1.0-1.1
[ 19s] [132/162] cumulate python312-packaging-25.0-1.1
[ 19s] [133/162] cumulate python312-pluggy-1.6.0-1.1
[ 19s] [134/162] cumulate python312-testfixtures-8.3.0-2.4
[ 19s] [135/162] cumulate python313-iniconfig-2.1.0-1.1
[ 19s] [136/162] cumulate python313-packaging-25.0-1.1
[ 19s] [137/162] cumulate python313-pluggy-1.6.0-1.1
[ 19s] [138/162] cumulate python313-testfixtures-8.3.0-2.4
[ 19s] [139/162] cumulate libpython3_11-1_0-3.11.13-7.1
[ 19s] [140/162] cumulate libpython3_12-1_0-3.12.11-4.1
[ 19s] [141/162] cumulate libpython3_13-1_0-3.13.7-4.2
[ 19s] [142/162] cumulate lua-interpreter-5-3.1
[ 19s] [143/162] cumulate python311-setuptools-78.1.1-1.1
[ 19s] [144/162] cumulate python312-setuptools-78.1.1-1.1
[ 19s] [145/162] cumulate python313-setuptools-78.1.1-1.1
[ 19s] [146/162] cumulate python311-Pygments-2.19.2-2.1
[ 19s] [147/162] cumulate python312-Pygments-2.19.2-2.1
[ 19s] [148/162] cumulate python313-Pygments-2.19.2-2.1
[ 19s] [149/162] cumulate binutils-2.43-10.1
[ 19s] [150/162] cumulate rpm-4.20.1-6.1
[ 19s] [151/162] cumulate python-rpm-packaging-20210526+a18ca48-1.6
[ 19s] [152/162] cumulate python311-pytest-8.4.1-1.1
[ 19s] [153/162] cumulate python312-pytest-8.4.1-1.1
[ 19s] [154/162] cumulate python313-pytest-8.4.1-1.1
[ 19s] [155/162] cumulate build-compare-20240801T083050.024a3a7-1.1
[ 19s] [156/162] cumulate librpmbuild10-4.20.1-6.1
[ 19s] [157/162] cumulate debugedit-5.1-1.1
[ 19s] [158/162] cumulate gcc15-15.1.1+git10189-1.1
[ 19s] [159/162] cumulate gcc15-PIE-15.1.1+git10189-1.1
[ 19s] [160/162] cumulate gcc-15-1.1
[ 19s] [161/162] cumulate gcc-PIE-15-1.1
[ 19s] [162/162] cumulate rpm-build-4.20.1-6.1
[ 19s] now installing cumulated packages
[ 20s] Preparing... ########################################
[ 20s] Updating / installing...
[ 20s] system-user-root-20190513-2.4 ########################################
[ 20s] terminfo-base-6.5.20250809-80.1 ########################################
[ 20s] python-rpm-macros-20241120.6ae645f-1.2########################################
[ 20s] pkgconf-m4-2.2.0-1.1 ########################################
[ 21s] file-magic-5.46-4.1 ########################################
[ 21s] crypto-policies-20250124.4d262e7-4.1 ########################################
[ 21s] compat-usrmerge-tools-84.87-5.5 ########################################
[ 21s] filesystem-84.87-18.1 ########################################
[ 21s] glibc-2.42-1.1 ########################################
[ 21s] libz1-1.3.1-1.1 ########################################
[ 21s] libbz2-1-1.0.8-5.3 ########################################
[ 21s] libgcc_s1-15.1.1+git10189-1.1 ########################################
[ 22s] liblzma5-5.8.1-1.1 ########################################
[ 22s] libstdc++6-15.1.1+git10189-1.1 ########################################
[ 22s] libzstd1-1.5.7-3.1 ########################################
[ 22s] libelf1-0.192-2.1 ########################################
[ 22s] libcrypt1-4.4.38-1.1 ########################################
[ 22s] libgmp10-6.3.0-5.1 ########################################
[ 23s] perl-base-5.42.0-1.1 ########################################
[ 23s] libacl1-2.3.2-2.1 ########################################
[ 23s] libuuid1-2.41.1-3.1 ########################################
[ 23s] libmpfr6-4.2.2-1.1 ########################################
[ 23s] libdw1-0.192-2.1 ########################################
[ 23s] fillup-1.42-281.1 ########################################
[ 23s] libcap2-2.75-1.1 ########################################
[ 23s] update-alternatives-1.22.21-1.1 ########################################
[ 23s] libeconf0-0.7.10-1.1 ########################################
[ 23s] libblkid1-2.41.1-3.1 ########################################
[ 24s] libexpat1-2.7.1-2.1 ########################################
[ 24s] libffi8-3.4.7-1.1 ########################################
[ 24s] libgomp1-15.1.1+git10189-1.1 ########################################
[ 24s] liblua5_4-5-5.4.8-3.1 ########################################
[ 24s] libmpdec4-4.0.1-2.1 ########################################
[ 24s] libpopt0-1.19-1.4 ########################################
[ 24s] libncurses6-6.5.20250809-80.1 ########################################
[ 24s] libreadline8-8.3.1-1.1 ########################################
[ 24s] bash-5.3.3-1.1 ########################################
[ 24s] bash-sh-5.3.3-1.1 ########################################
[ 24s] xz-5.8.1-1.1 ########################################
[ 25s] gawk-5.3.2-1.1 ########################################
[ 25s] cpio-2.15-6.1 ########################################
[ 25s] permctl-1699_20250120-1.2 ########################################
[ 25s] libmpc3-1.3.1-1.5 ########################################
[ 25s] libisl23-0.27-1.1 ########################################
[ 30s] cpp15-15.1.1+git10189-1.1 ########################################
[ 30s] dwz-0.15-6.1 ########################################
[ 30s] diffutils-3.12-1.1 ########################################
[ 30s] libaudit1-4.0.2-4.1 ########################################
[ 30s] libgdbm6-1.24-2.1 ########################################
[ 30s] libjitterentropy3-3.6.3-1.1 ########################################
[ 30s] libpcre2-8-0-10.45-2.1 ########################################
[ 30s] libselinux1-3.9-2.1 ########################################
[ 30s] sed-4.9-2.2 ########################################
[ 30s] grep-3.12-1.1 ########################################
[ 31s] findutils-4.10.0-2.1 ########################################
[ 31s] libmount1-2.41.1-3.1 ########################################
[ 31s] tar-1.35-4.1 ########################################
[ 31s] libgdbm_compat4-1.24-2.1 ########################################
[ 35s] perl-5.42.0-1.1 ########################################
[ 35s] perl-rpm-packaging-1.2-1.1 ########################################
[ 35s] cpp-15-1.1 ########################################
[ 36s] gzip-1.14-1.1 ########################################
[ 36s] make-4.4.1-3.1 ########################################
[ 36s] bzip2-1.0.8-5.3 ########################################
[ 36s] ncurses-utils-6.5.20250809-80.1 ########################################
[ 36s] libfdisk1-2.41.1-3.1 ########################################
[ 36s] libasm1-0.192-2.1 ########################################
[ 36s] elfutils-0.192-2.1 ########################################
[ 36s] libasan8-15.1.1+git10189-1.1 ########################################
[ 37s] liblsan0-15.1.1+git10189-1.1 ########################################
[ 37s] libtsan2-15.1.1+git10189-1.1 ########################################
[ 37s] libubsan1-15.1.1+git10189-1.1 ########################################
[ 37s] libxml2-2-2.13.8-3.1 ########################################
[ 37s] libctf-nobfd0-2.43-10.1 ########################################
[ 37s] libctf0-2.43-10.1 ########################################
[ 42s] binutils-2.43-10.1 ########################################
[ 42s] update-alternatives: using /usr/bin/ld.bfd to provide /usr/bin/ld (ld) in auto mode
[ 42s] envsubst-mini-0.26-2.1 ########################################
[ 42s] gettext-runtime-mini-0.26-2.1 ########################################
[ 43s] glibc-gconv-modules-extra-2.42-1.1 ########################################
[ 44s] gettext-tools-mini-0.26-2.1 ########################################
[ 44s] glibc-locale-base-2.42-1.1 ########################################
[ 44s] libalternatives1-1.2+31.da24cd4-1.1 ########################################
[ 44s] alts-1.2+31.da24cd4-1.1 ########################################
[ 44s] lua-interpreter-5-3.1 ########################################
[ 44s] lua54-5.4.8-3.1 ########################################
[ 44s] libatomic1-15.1.1+git10189-1.1 ########################################
[ 44s] libattr1-2.5.2-1.1 ########################################
[ 45s] coreutils-9.7-3.1 ########################################
[ 46s] libopenssl3-3.5.2-1.1 ########################################
[ 49s] python313-base-3.13.7-4.2 ########################################
[ 49s] libpython3_13-1_0-3.13.7-4.2 ########################################
[ 53s] python311-base-3.11.13-7.1 ########################################
[ 53s] libpython3_11-1_0-3.11.13-7.1 ########################################
[ 57s] python312-base-3.12.11-4.1 ########################################
[ 58s] libpython3_12-1_0-3.12.11-4.1 ########################################
[ 58s] python313-packaging-25.0-1.1 ########################################
[ 58s] aaa_base-84.87+git20250805.3069494-1.1########################################
[ 58s] Updating /etc/sysconfig/proxy ...
[ 58s] aaa_base-malloccheck-84.87+git20250805########################################
[ 58s] python-rpm-packaging-20210526+a18ca48-########################################
[ 58s] python312-iniconfig-2.1.0-1.1 ########################################
[ 58s] python312-packaging-25.0-1.1 ########################################
[ 58s] python312-pluggy-1.6.0-1.1 ########################################
[ 59s] python312-setuptools-78.1.1-1.1 ########################################
[ 61s] python312-Pygments-2.19.2-2.1 ########################################
[ 61s] python311-iniconfig-2.1.0-1.1 ########################################
[ 61s] python311-packaging-25.0-1.1 ########################################
[ 61s] python311-pluggy-1.6.0-1.1 ########################################
[ 63s] python311-setuptools-78.1.1-1.1 ########################################
[ 64s] python311-Pygments-2.19.2-2.1 ########################################
[ 64s] python313-iniconfig-2.1.0-1.1 ########################################
[ 64s] python313-pluggy-1.6.0-1.1 ########################################
[ 66s] python313-setuptools-78.1.1-1.1 ########################################
[ 67s] python313-Pygments-2.19.2-2.1 ########################################
[ 68s] linux-glibc-devel-6.16-1.1 ########################################
[ 68s] systemd-rpm-macros-26-1.1 ########################################
[ 68s] permissions-config-1699_20250120-1.2 ########################################
[ 68s] Updating /etc/sysconfig/security ...
[ 68s] Checking permissions and ownerships - using the permissions files
[ 68s] /usr/share/permissions/permissions
[ 68s] /usr/share/permissions/permissions.easy
[ 68s] /etc/permissions.local
[ 68s] /usr/sbin/unix_chkpwd: setting to root:shadow 4755 (wrong owner/group root:root)
[ 68s] permissions-1699_20250120-1.2 ########################################
[ 69s] pam-1.7.1-3.1 ########################################
[ 69s] polkit-default-privs-1550+20250721.f1b########################################
[ 69s] Updating /etc/sysconfig/security ...
[ 70s] can't open /etc/polkit-1/rules.d/90-default-privs.rules.new: No such file or directory
[ 70s] warning: %post(polkit-default-privs-1550+20250721.f1b71a3-1.1.noarch) scriptlet failed, exit status 2
[ 70s] debugedit-5.1-1.1 ########################################
[ 70s] libcap-ng0-0.8.5-1.1 ########################################
[ 70s] libgpg-error0-1.55-1.1 ########################################
[ 70s] libgcrypt20-1.11.2-6.1 ########################################
[ 70s] rpm-config-SUSE-20250423-1.1 ########################################
[ 71s] rpm-4.20.1-6.1 ########################################
[ 71s] Updating /etc/sysconfig/services ...
[ 72s] libitm1-15.1.1+git10189-1.1 ########################################
[ 72s] liblz1-1.15-1.1 ########################################
[ 72s] libmagic1-5.46-4.1 ########################################
[ 72s] librpmbuild10-4.20.1-6.1 ########################################
[ 72s] liblz4-1-1.10.0-2.1 ########################################
[ 72s] libarchive13-3.8.1-1.1 ########################################
[ 72s] libpkgconf5-2.2.0-1.1 ########################################
[ 72s] pkgconf-2.2.0-1.1 ########################################
[ 72s] pkgconf-pkg-config-2.2.0-1.1 ########################################
[ 72s] libxcrypt-devel-4.4.38-1.1 ########################################
[ 73s] glibc-devel-2.42-1.1 ########################################
[ 99s] gcc15-15.1.1+git10189-1.1 ########################################
[ 99s] gcc15-PIE-15.1.1+git10189-1.1 ########################################
[ 99s] gcc-15-1.1 ########################################
[ 99s] libseccomp2-2.6.0-2.1 ########################################
[ 99s] file-5.46-4.1 ########################################
[ 99s] libsmartcols1-2.41.1-3.1 ########################################
[ 100s] util-linux-2.41.1-3.1 ########################################
[ 100s] patch-2.8-1.1 ########################################
[ 100s] which-2.23-1.1 ########################################
[ 100s] rpm-build-4.20.1-6.1 ########################################
[ 100s] build-compare-20240801T083050.024a3a7-########################################
[ 100s] gcc-PIE-15-1.1 ########################################
[ 103s] rpmlint-mini-2.7.0+git20250710.a7f0a67########################################
[ 103s] post-build-checks-84.87+git20250725.0c########################################
[ 103s] python313-pytest-8.4.1-1.1 ########################################
[ 104s] python311-pytest-8.4.1-1.1 ########################################
[ 104s] python312-pytest-8.4.1-1.1 ########################################
[ 105s] python312-testfixtures-8.3.0-2.4 ########################################
[ 105s] python311-testfixtures-8.3.0-2.4 ########################################
[ 105s] python313-testfixtures-8.3.0-2.4 ########################################
[ 105s] compat-usrmerge-build-84.87-5.5 ########################################
[ 105s] brp-check-suse-84.87+git20230324.8680c########################################
[ 111s] qemu-linux-user-10.0.3-83.1 ########################################
[ 112s] build-mkbaselibs-20250708-1.1 ########################################
[ 112s] fdupes-2.4.0-1.1 ########################################
[ 113s] kernel-obs-build-6.16.1-1.1 ########################################
[ 119s] now finalizing build dir...
[ 119s] ... running 01-add_abuild_user_to_trusted_group
[ 120s] ... running 02-set_timezone_to_utc
[ 120s] ... running 03-set-permissions-secure
[ 120s] ... running 11-hack_uname_version_to_kernel_version
[ 124s] setting SOURCE_DATE_EPOCH_MTIME to 1681128229
[ 133s] -----------------------------------------------------------------
[ 133s] I have the following modifications for python-cpplint.spec:
[ 133s] 21c21
[ 133s] < Release: 0
[ 133s] ---
[ 133s] > Release: 7.1
[ 137s] build target is riscv64-suse-linux
[ 137s] -----------------------------------------------------------------
[ 137s] ----- building python-cpplint.spec (user abuild)
[ 137s] -----------------------------------------------------------------
[ 137s] -----------------------------------------------------------------
[ 141s] setting SOURCE_DATE_EPOCH_MTIME to 1681128229
[ 141s] + 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/b1e7fe95673e9d64f6fb343cfbeceb56-failed_python-cpplint' /home/abuild/rpmbuild/SOURCES/python-cpplint.spec
[ 141s] Building target platforms: riscv64-suse-linux
[ 141s] Building for target riscv64-suse-linux
[ 173s] using SOURCE_DATE_EPOCH with value 1681128228 as build time
[ 173s] Executing(%mkbuilddir): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.JDr3L8
[ 173s] Executing(%prep): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.kx39Em
[ 173s] + umask 022
[ 173s] + cd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 173s] + cd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 173s] + rm -rf cpplint-1.6.1
[ 173s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/cpplint-1.6.1.tar.gz
[ 174s] + STATUS=0
[ 174s] + '[' 0 -ne 0 ']'
[ 174s] + cd cpplint-1.6.1
[ 174s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[ 174s] + /usr/lib/rpm/rpmuncompress /home/abuild/rpmbuild/SOURCES/drop-sre-compile.patch
[ 174s] + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
[ 174s] + sed -i -e '/^#!\//, 1d' cpplint.py
[ 174s] + sed -i s/pytest-runner==5.2// setup.py
[ 174s] + sed -i s/pytest-cov// test-requirements
[ 174s] + sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg
[ 175s] + RPM_EC=0
[ 175s] ++ jobs -p
[ 175s] + exit 0
[ 175s] Executing(%build): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.aySulw
[ 175s] + umask 022
[ 175s] + cd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 175s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT
[ 175s] ++ dirname /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT
[ 175s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 175s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT
[ 175s] + cd cpplint-1.6.1
[ 175s] + ref=/usr/lib/rpm
[ 175s] + mints=0
[ 175s] + case $(uname -m) in
[ 175s] ++ uname -m
[ 175s] + mints=20160911
[ 175s] + for s in guess sub
[ 175s] ++ find -maxdepth 8 -name config.guess
[ 175s] + for s in guess sub
[ 175s] ++ find -maxdepth 8 -name config.sub
[ 176s] ++ '[' -f _current_flavor ']'
[ 176s] ++ true
[ 176s] + last_flavor=
[ 176s] + '[' -z '' ']'
[ 176s] + last_flavor=tmp
[ 176s] + '[' tmp '!=' python311 ']'
[ 176s] + '[' -d build ']'
[ 176s] + '[' -d _build.python311 ']'
[ 176s] + echo python311
[ 176s] + python_flavor=python311
[ 176s] + /usr/bin/python3.11 setup.py build '--executable=/usr/bin/python3.11 -s'
[ 178s] /usr/lib/python3.11/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 178s] !!
[ 178s]
[ 178s] ********************************************************************************
[ 178s] Requirements should be satisfied by a PEP 517 installer.
[ 178s] If you are using pip, you can try `pip install --use-pep517`.
[ 178s] ********************************************************************************
[ 178s]
[ 178s] !!
[ 178s] dist.fetch_build_eggs(dist.setup_requires)
[ 178s] /usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 178s] warnings.warn(msg)
[ 178s] /usr/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[ 178s] !!
[ 178s]
[ 178s] ********************************************************************************
[ 178s] Please consider removing the following classifiers in favor of a SPDX license expression:
[ 178s]
[ 178s] License :: Freely Distributable
[ 178s]
[ 178s] See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[ 178s] ********************************************************************************
[ 178s]
[ 178s] !!
[ 178s] self._finalize_license_expression()
[ 178s] running build
[ 178s] running build_py
[ 178s] creating build/lib
[ 178s] copying cpplint.py -> build/lib
[ 179s] ++ '[' -f _current_flavor ']'
[ 179s] ++ cat _current_flavor
[ 179s] + last_flavor=python311
[ 179s] + '[' -z python311 ']'
[ 179s] + '[' python311 '!=' python312 ']'
[ 179s] + '[' -d build ']'
[ 179s] + mv build _build.python311
[ 179s] + '[' -d _build.python312 ']'
[ 179s] + echo python312
[ 179s] + python_flavor=python312
[ 179s] + /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 -s'
[ 181s] /usr/lib/python3.12/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 181s] !!
[ 181s]
[ 181s] ********************************************************************************
[ 181s] Requirements should be satisfied by a PEP 517 installer.
[ 181s] If you are using pip, you can try `pip install --use-pep517`.
[ 181s] ********************************************************************************
[ 181s]
[ 181s] !!
[ 181s] dist.fetch_build_eggs(dist.setup_requires)
[ 181s] /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 181s] warnings.warn(msg)
[ 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 :: Freely Distributable
[ 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 build
[ 182s] running build_py
[ 182s] creating build/lib
[ 182s] copying cpplint.py -> build/lib
[ 182s] ++ '[' -f _current_flavor ']'
[ 182s] ++ cat _current_flavor
[ 182s] + last_flavor=python312
[ 182s] + '[' -z python312 ']'
[ 182s] + '[' python312 '!=' python313 ']'
[ 182s] + '[' -d build ']'
[ 182s] + mv build _build.python312
[ 182s] + '[' -d _build.python313 ']'
[ 182s] + echo python313
[ 182s] + python_flavor=python313
[ 182s] + /usr/bin/python3.13 setup.py build '--executable=/usr/bin/python3.13 -s'
[ 185s] /usr/lib/python3.13/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 185s] !!
[ 185s]
[ 185s] ********************************************************************************
[ 185s] Requirements should be satisfied by a PEP 517 installer.
[ 185s] If you are using pip, you can try `pip install --use-pep517`.
[ 185s] ********************************************************************************
[ 185s]
[ 185s] !!
[ 185s] dist.fetch_build_eggs(dist.setup_requires)
[ 185s] /usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 185s] warnings.warn(msg)
[ 185s] /usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[ 185s] !!
[ 185s]
[ 185s] ********************************************************************************
[ 185s] Please consider removing the following classifiers in favor of a SPDX license expression:
[ 185s]
[ 185s] License :: Freely Distributable
[ 185s]
[ 185s] See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[ 185s] ********************************************************************************
[ 185s]
[ 185s] !!
[ 185s] self._finalize_license_expression()
[ 185s] running build
[ 185s] running build_py
[ 185s] creating build/lib
[ 185s] copying cpplint.py -> build/lib
[ 185s] + RPM_EC=0
[ 185s] ++ jobs -p
[ 185s] + exit 0
[ 185s] Executing(%install): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.ylRFXW
[ 185s] + umask 022
[ 185s] + cd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 185s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT
[ 185s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 185s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT
[ 185s] + cd cpplint-1.6.1
[ 185s] ++ '[' -f _current_flavor ']'
[ 185s] ++ cat _current_flavor
[ 185s] + last_flavor=python313
[ 185s] + '[' -z python313 ']'
[ 185s] + '[' python313 '!=' python311 ']'
[ 185s] + '[' -d build ']'
[ 185s] + mv build _build.python313
[ 185s] + '[' -d _build.python311 ']'
[ 185s] + mv _build.python311 build
[ 185s] + echo python311
[ 185s] + python_flavor=python311
[ 185s] + myargs=
[ 185s] + /usr/bin/python3.11 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT --prefix /usr
[ 187s] /usr/lib/python3.11/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 187s] !!
[ 187s]
[ 187s] ********************************************************************************
[ 187s] Requirements should be satisfied by a PEP 517 installer.
[ 187s] If you are using pip, you can try `pip install --use-pep517`.
[ 187s] ********************************************************************************
[ 187s]
[ 187s] !!
[ 187s] dist.fetch_build_eggs(dist.setup_requires)
[ 188s] /usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 188s] warnings.warn(msg)
[ 188s] /usr/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[ 188s] !!
[ 188s]
[ 188s] ********************************************************************************
[ 188s] Please consider removing the following classifiers in favor of a SPDX license expression:
[ 188s]
[ 188s] License :: Freely Distributable
[ 188s]
[ 188s] See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[ 188s] ********************************************************************************
[ 188s]
[ 188s] !!
[ 188s] self._finalize_license_expression()
[ 188s] running install
[ 188s] /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[ 188s] !!
[ 188s]
[ 188s] ********************************************************************************
[ 188s] Please avoid running ``setup.py`` directly.
[ 188s] Instead, use pypa/build, pypa/installer or other
[ 188s] standards-based tools.
[ 188s]
[ 188s] See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[ 188s] ********************************************************************************
[ 188s]
[ 188s] !!
[ 188s] self.initialize_options()
[ 188s] running install_lib
[ 188s] creating /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages
[ 188s] copying build/lib/cpplint.py -> /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages
[ 188s] byte-compiling /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages/cpplint.py to cpplint.cpython-311.pyc
[ 188s] writing byte-compilation script '/tmp/tmpfx5761m6.py'
[ 188s] /usr/bin/python3.11 /tmp/tmpfx5761m6.py
[ 190s] removing /tmp/tmpfx5761m6.py
[ 190s] running install_egg_info
[ 190s] running egg_info
[ 190s] writing cpplint.egg-info/PKG-INFO
[ 190s] writing dependency_links to cpplint.egg-info/dependency_links.txt
[ 190s] writing entry points to cpplint.egg-info/entry_points.txt
[ 190s] writing requirements to cpplint.egg-info/requires.txt
[ 190s] writing top-level names to cpplint.egg-info/top_level.txt
[ 191s] reading manifest file 'cpplint.egg-info/SOURCES.txt'
[ 191s] reading manifest template 'MANIFEST.in'
[ 191s] warning: no previously-included files matching '.tox' found anywhere in distribution
[ 191s] warning: no previously-included files matching '*~' found anywhere in distribution
[ 191s] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[ 191s] warning: no previously-included files matching '.coverage' found anywhere in distribution
[ 191s] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[ 191s] warning: no previously-included files matching '*.db' found anywhere in distribution
[ 191s] warning: no previously-included files matching '.git*' found anywhere in distribution
[ 191s] warning: no previously-included files matching '*.orig' found anywhere in distribution
[ 191s] adding license file 'LICENSE'
[ 191s] writing manifest file 'cpplint.egg-info/SOURCES.txt'
[ 191s] Copying cpplint.egg-info to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages/cpplint-1.6.1-py3.11.egg-info
[ 191s] running install_scripts
[ 191s] Installing cpplint script to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 191s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.11/site-packages
[ 191s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages ']'
[ 191s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages -iname '*.pyc' -delete
[ 191s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages -iname '*.py' -print0
[ 191s] + 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-cpplint-1.6.1-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'
[ 192s] Generating cached byte-code for /usr/lib/python3.11/site-packages/cpplint.py
[ 192s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.11/site-packages
[ 192s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.11/site-packages ']'
[ 192s] + myargs='/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*'
[ 192s] + for f in ${myargs}
[ 192s] + '[' -f /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -x /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -w /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint ']'
[ 192s] ++ dirname /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 192s] + pushd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 192s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 192s] ++ realpath /usr/bin/python3.11
[ 192s] ++ basename /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 192s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.11@' cpplint
[ 192s] + popd
[ 192s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 192s] + for f in ${myargs}
[ 192s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' ']'
[ 192s] ++ '[' -f _current_flavor ']'
[ 192s] ++ cat _current_flavor
[ 193s] + last_flavor=python311
[ 193s] + '[' -z python311 ']'
[ 193s] + '[' python311 '!=' python312 ']'
[ 193s] + '[' -d build ']'
[ 193s] + mv build _build.python311
[ 193s] + '[' -d _build.python312 ']'
[ 193s] + mv _build.python312 build
[ 193s] + echo python312
[ 193s] + python_flavor=python312
[ 193s] + myargs=
[ 193s] + /usr/bin/python3.12 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT --prefix /usr
[ 195s] /usr/lib/python3.12/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 195s] !!
[ 195s]
[ 195s] ********************************************************************************
[ 195s] Requirements should be satisfied by a PEP 517 installer.
[ 195s] If you are using pip, you can try `pip install --use-pep517`.
[ 195s] ********************************************************************************
[ 195s]
[ 195s] !!
[ 195s] dist.fetch_build_eggs(dist.setup_requires)
[ 195s] /usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 195s] warnings.warn(msg)
[ 195s] /usr/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[ 195s] !!
[ 195s]
[ 195s] ********************************************************************************
[ 195s] Please consider removing the following classifiers in favor of a SPDX license expression:
[ 195s]
[ 195s] License :: Freely Distributable
[ 195s]
[ 195s] See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[ 195s] ********************************************************************************
[ 195s]
[ 195s] !!
[ 195s] self._finalize_license_expression()
[ 195s] running install
[ 195s] /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[ 195s] !!
[ 195s]
[ 195s] ********************************************************************************
[ 195s] Please avoid running ``setup.py`` directly.
[ 195s] Instead, use pypa/build, pypa/installer or other
[ 195s] standards-based tools.
[ 195s]
[ 195s] See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[ 195s] ********************************************************************************
[ 195s]
[ 195s] !!
[ 195s] self.initialize_options()
[ 195s] running install_lib
[ 195s] creating /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages
[ 195s] copying build/lib/cpplint.py -> /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages
[ 195s] byte-compiling /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages/cpplint.py to cpplint.cpython-312.pyc
[ 196s] writing byte-compilation script '/tmp/tmp6i2_phx_.py'
[ 196s] /usr/bin/python3.12 /tmp/tmp6i2_phx_.py
[ 199s] removing /tmp/tmp6i2_phx_.py
[ 199s] running install_egg_info
[ 199s] running egg_info
[ 199s] writing cpplint.egg-info/PKG-INFO
[ 199s] writing dependency_links to cpplint.egg-info/dependency_links.txt
[ 199s] writing entry points to cpplint.egg-info/entry_points.txt
[ 199s] writing requirements to cpplint.egg-info/requires.txt
[ 199s] writing top-level names to cpplint.egg-info/top_level.txt
[ 199s] reading manifest file 'cpplint.egg-info/SOURCES.txt'
[ 199s] reading manifest template 'MANIFEST.in'
[ 199s] warning: no previously-included files matching '.tox' found anywhere in distribution
[ 199s] warning: no previously-included files matching '*~' found anywhere in distribution
[ 199s] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[ 199s] warning: no previously-included files matching '.coverage' found anywhere in distribution
[ 199s] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[ 199s] warning: no previously-included files matching '*.db' found anywhere in distribution
[ 199s] warning: no previously-included files matching '.git*' found anywhere in distribution
[ 199s] warning: no previously-included files matching '*.orig' found anywhere in distribution
[ 199s] adding license file 'LICENSE'
[ 199s] writing manifest file 'cpplint.egg-info/SOURCES.txt'
[ 199s] Copying cpplint.egg-info to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages/cpplint-1.6.1-py3.12.egg-info
[ 199s] running install_scripts
[ 199s] Installing cpplint script to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 200s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.12/site-packages
[ 200s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages ']'
[ 200s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages -iname '*.pyc' -delete
[ 200s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages -iname '*.py' -print0
[ 200s] + 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-cpplint-1.6.1-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'
[ 202s] Generating cached byte-code for /usr/lib/python3.12/site-packages/cpplint.py
[ 202s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.12/site-packages
[ 202s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.12/site-packages ']'
[ 202s] + myargs='/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*'
[ 202s] + for f in ${myargs}
[ 202s] + '[' -f /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -x /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -w /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint ']'
[ 202s] ++ dirname /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 202s] + pushd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 202s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 202s] ++ realpath /usr/bin/python3.12
[ 202s] ++ basename /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 202s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.12@' cpplint
[ 202s] + popd
[ 202s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 202s] + for f in ${myargs}
[ 202s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' ']'
[ 202s] ++ '[' -f _current_flavor ']'
[ 202s] ++ cat _current_flavor
[ 202s] + last_flavor=python312
[ 202s] + '[' -z python312 ']'
[ 202s] + '[' python312 '!=' python313 ']'
[ 202s] + '[' -d build ']'
[ 202s] + mv build _build.python312
[ 202s] + '[' -d _build.python313 ']'
[ 202s] + mv _build.python313 build
[ 202s] + echo python313
[ 202s] + python_flavor=python313
[ 202s] + myargs=
[ 202s] + /usr/bin/python3.13 setup.py install -O1 --skip-build --force --root /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT --prefix /usr
[ 205s] /usr/lib/python3.13/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
[ 205s] !!
[ 205s]
[ 205s] ********************************************************************************
[ 205s] Requirements should be satisfied by a PEP 517 installer.
[ 205s] If you are using pip, you can try `pip install --use-pep517`.
[ 205s] ********************************************************************************
[ 205s]
[ 205s] !!
[ 205s] dist.fetch_build_eggs(dist.setup_requires)
[ 205s] /usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[ 205s] warnings.warn(msg)
[ 205s] /usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[ 205s] !!
[ 205s]
[ 205s] ********************************************************************************
[ 205s] Please consider removing the following classifiers in favor of a SPDX license expression:
[ 205s]
[ 205s] License :: Freely Distributable
[ 205s]
[ 205s] See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[ 205s] ********************************************************************************
[ 205s]
[ 205s] !!
[ 205s] self._finalize_license_expression()
[ 205s] running install
[ 205s] /usr/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
[ 205s] !!
[ 205s]
[ 205s] ********************************************************************************
[ 205s] Please avoid running ``setup.py`` directly.
[ 205s] Instead, use pypa/build, pypa/installer or other
[ 205s] standards-based tools.
[ 205s]
[ 205s] See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
[ 205s] ********************************************************************************
[ 205s]
[ 205s] !!
[ 205s] self.initialize_options()
[ 205s] running install_lib
[ 206s] creating /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages
[ 206s] copying build/lib/cpplint.py -> /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages
[ 206s] byte-compiling /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/cpplint.py to cpplint.cpython-313.pyc
[ 206s] writing byte-compilation script '/tmp/tmp5wbhhulh.py'
[ 206s] /usr/bin/python3.13 /tmp/tmp5wbhhulh.py
[ 209s] removing /tmp/tmp5wbhhulh.py
[ 209s] running install_egg_info
[ 209s] running egg_info
[ 209s] writing cpplint.egg-info/PKG-INFO
[ 209s] writing dependency_links to cpplint.egg-info/dependency_links.txt
[ 209s] writing entry points to cpplint.egg-info/entry_points.txt
[ 209s] writing requirements to cpplint.egg-info/requires.txt
[ 209s] writing top-level names to cpplint.egg-info/top_level.txt
[ 209s] reading manifest file 'cpplint.egg-info/SOURCES.txt'
[ 209s] reading manifest template 'MANIFEST.in'
[ 209s] warning: no previously-included files matching '.tox' found anywhere in distribution
[ 209s] warning: no previously-included files matching '*~' found anywhere in distribution
[ 209s] warning: no previously-included files matching '__pycache__' found anywhere in distribution
[ 209s] warning: no previously-included files matching '.coverage' found anywhere in distribution
[ 209s] warning: no previously-included files matching '*.py[co]' found anywhere in distribution
[ 209s] warning: no previously-included files matching '*.db' found anywhere in distribution
[ 209s] warning: no previously-included files matching '.git*' found anywhere in distribution
[ 209s] warning: no previously-included files matching '*.orig' found anywhere in distribution
[ 209s] adding license file 'LICENSE'
[ 209s] writing manifest file 'cpplint.egg-info/SOURCES.txt'
[ 209s] Copying cpplint.egg-info to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/cpplint-1.6.1-py3.13.egg-info
[ 209s] running install_scripts
[ 209s] Installing cpplint script to /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 209s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.13/site-packages
[ 209s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages ']'
[ 209s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages -iname '*.pyc' -delete
[ 209s] + find /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages -iname '*.py' -print0
[ 209s] + 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-cpplint-1.6.1-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'
[ 211s] Generating cached byte-code for /usr/lib/python3.13/site-packages/cpplint.py
[ 211s] + for d in /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.13/site-packages
[ 211s] + '[' -d /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib64/python3.13/site-packages ']'
[ 211s] + myargs='/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/* /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*'
[ 211s] + for f in ${myargs}
[ 211s] + '[' -f /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -x /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint -a -w /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint ']'
[ 211s] ++ dirname /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 211s] + pushd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin
[ 211s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 211s] ++ realpath /usr/bin/python3.13
[ 211s] ++ basename /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 211s] + sed -i --follow-symlinks '1s@#\!.*python\S*@#\!/usr/bin/python3.13@' cpplint
[ 211s] + popd
[ 211s] ~/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 211s] + for f in ${myargs}
[ 211s] + '[' -f '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -x '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' -a -w '/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/sbin/*' ']'
[ 211s] + cp /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.11
[ 211s] ++ realpath /usr/bin/python3.11
[ 211s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.11@' /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.11
[ 211s] + cp /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.12
[ 211s] ++ realpath /usr/bin/python3.12
[ 211s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.12@' /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.12
[ 211s] + cp /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.13
[ 211s] ++ realpath /usr/bin/python3.13
[ 211s] + sed -ri '1s@#!.*python\S*@#!/usr/bin/python3.13@' /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint-3.13
[ 211s] + rm -f /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 211s] + alternative_target=/usr/bin/cpplint
[ 211s] + [[ /usr/bin/cpplint == /usr/share/man* ]]
[ 211s] + '[' 0 -eq 1 ']'
[ 211s] + mkdir -p /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/etc/alternatives
[ 211s] + touch /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/etc/alternatives/cpplint
[ 212s] + ln -sf /etc/alternatives/cpplint /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/bin/cpplint
[ 212s] ++ '[' -f _current_flavor ']'
[ 212s] ++ cat _current_flavor
[ 212s] + last_flavor=python313
[ 212s] + '[' -z python313 ']'
[ 212s] + '[' python313 '!=' python311 ']'
[ 212s] + '[' -d build ']'
[ 212s] + mv build _build.python313
[ 212s] + '[' -d _build.python311 ']'
[ 212s] + mv _build.python311 build
[ 212s] + echo python311
[ 212s] + python_flavor=python311
[ 212s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages
[ 212s] ++ '[' -f _current_flavor ']'
[ 212s] ++ cat _current_flavor
[ 212s] + last_flavor=python311
[ 212s] + '[' -z python311 ']'
[ 212s] + '[' python311 '!=' python312 ']'
[ 212s] + '[' -d build ']'
[ 212s] + mv build _build.python311
[ 212s] + '[' -d _build.python312 ']'
[ 212s] + mv _build.python312 build
[ 212s] + echo python312
[ 212s] + python_flavor=python312
[ 212s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages
[ 212s] ++ '[' -f _current_flavor ']'
[ 212s] ++ cat _current_flavor
[ 212s] + last_flavor=python312
[ 212s] + '[' -z python312 ']'
[ 212s] + '[' python312 '!=' python313 ']'
[ 212s] + '[' -d build ']'
[ 212s] + mv build _build.python312
[ 212s] + '[' -d _build.python313 ']'
[ 212s] + mv _build.python313 build
[ 212s] + echo python313
[ 212s] + python_flavor=python313
[ 212s] + /usr/lib/rpm/fdupes_wrapper /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages
[ 212s] + /usr/lib/rpm/brp-compress
[ 213s] + /usr/lib/rpm/brp-suse
[ 213s] calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
[ 213s] calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
[ 213s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
[ 213s] calling /usr/lib/rpm/brp-suse.d/brp-50-generate-fips-hmac
[ 213s] calling /usr/lib/rpm/brp-suse.d/brp-75-ar
[ 214s] Executing(%check): /usr/bin/env QEMU_STACK_SIZE=64M /usr/bin/bash -e /var/tmp/rpm-tmp.HZm3D6
[ 214s] + umask 022
[ 214s] + cd /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build
[ 214s] + cd cpplint-1.6.1
[ 214s] + set +x
[ 214s] Using libalternatives variant 311 for py.test in XDG_CONFIG_HOME during Python 3.11 expansions.
[ 214s] Using libalternatives variant 311 for pygmentize in XDG_CONFIG_HOME during Python 3.11 expansions.
[ 214s] Using libalternatives variant 311 for pytest in XDG_CONFIG_HOME during Python 3.11 expansions.
[ 215s] Using alternative cpplint-3.11 for cpplint in ./build/flavorbin during Python 3.11 expansions.
[ 215s] Using libalternatives variant 312 for py.test in XDG_CONFIG_HOME during Python 3.12 expansions.
[ 215s] Using libalternatives variant 312 for pygmentize in XDG_CONFIG_HOME during Python 3.12 expansions.
[ 215s] Using libalternatives variant 312 for pytest in XDG_CONFIG_HOME during Python 3.12 expansions.
[ 216s] Using alternative cpplint-3.12 for cpplint in ./build/flavorbin during Python 3.12 expansions.
[ 216s] Using alternative cpplint-3.13 for cpplint in ./build/flavorbin during Python 3.13 expansions.
[ 216s] + export PATH=/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1/build/flavorbin:/usr/local/bin:/usr/bin:/bin
[ 216s] + PATH=/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1/build/flavorbin:/usr/local/bin:/usr/bin:/bin
[ 216s] ++ '[' -f _current_flavor ']'
[ 216s] ++ cat _current_flavor
[ 216s] + last_flavor=python313
[ 216s] + '[' -z python313 ']'
[ 216s] + '[' python313 '!=' python311 ']'
[ 216s] + '[' -d build ']'
[ 216s] + mv build _build.python313
[ 216s] + '[' -d _build.python311 ']'
[ 216s] + mv _build.python311 build
[ 217s] + echo python311
[ 217s] + python_flavor=python311
[ 217s] + PYTHONPATH=/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.11/site-packages
[ 217s] + PYTHONDONTWRITEBYTECODE=1
[ 217s] + pytest-3.11 --ignore=_build.python311 --ignore=_build.python312 --ignore=_build.python313 -v
[ 219s] ============================= test session starts ==============================
[ 219s] platform linux -- Python 3.11.13, pytest-8.4.1, pluggy-1.6.0 -- /usr/bin/python3.11
[ 219s] cachedir: .pytest_cache
[ 219s] rootdir: /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 219s] configfile: setup.cfg
[ 219s] testpaths: .
[ 220s] collecting ... collected 208 items
[ 220s]
[ 222s] cpplint_clitest.py::UsageTest::testHelp PASSED [ 0%]
[ 247s] cpplint_clitest.py::NoRepoSignatureTests::testBoostSample PASSED [ 0%]
[ 249s] cpplint_clitest.py::NoRepoSignatureTests::testCfgFileSample PASSED [ 1%]
[ 261s] cpplint_clitest.py::NoRepoSignatureTests::testChromiumSample PASSED [ 1%]
[ 265s] cpplint_clitest.py::NoRepoSignatureTests::testCodeliteSample PASSED [ 2%]
[ 343s] cpplint_clitest.py::NoRepoSignatureTests::testProtobufSample PASSED [ 2%]
[ 350s] cpplint_clitest.py::NoRepoSignatureTests::testSillySample PASSED [ 3%]
[ 355s] cpplint_clitest.py::NoRepoSignatureTests::testV8Sample PASSED [ 3%]
[ 359s] cpplint_clitest.py::NoRepoSignatureTests::testVlcSample PASSED [ 4%]
[ 362s] cpplint_clitest.py::GitRepoSignatureTests::testCodeliteSample PASSED [ 4%]
[ 366s] cpplint_clitest.py::MercurialRepoSignatureTests::testCodeliteSample PASSED [ 5%]
[ 369s] cpplint_clitest.py::SvnRepoSignatureTests::testCodeliteSample PASSED [ 5%]
[ 369s] cpplint_unittest.py::CpplintTest::testAllowBlankLineAfterExtern PASSED [ 6%]
[ 369s] cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeClosingNamespace PASSED [ 6%]
[ 369s] cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeIfElseChain PASSED [ 7%]
[ 369s] cpplint_unittest.py::CpplintTest::testAllowBlankLinesInRawStrings PASSED [ 7%]
[ 369s] cpplint_unittest.py::CpplintTest::testBadCharacters PASSED [ 8%]
[ 369s] cpplint_unittest.py::CpplintTest::testBlankLineBeforeSectionKeyword PASSED [ 8%]
[ 370s] cpplint_unittest.py::CpplintTest::testBlankLinesCheck PASSED [ 9%]
[ 370s] cpplint_unittest.py::CpplintTest::testBraceAtBeginOfLine PASSED [ 9%]
[ 370s] cpplint_unittest.py::CpplintTest::testBraceInitializerList PASSED [ 10%]
[ 370s] cpplint_unittest.py::CpplintTest::testBraces PASSED [ 10%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildClass PASSED [ 11%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildEndComment PASSED [ 11%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildForwardDecl PASSED [ 12%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuard PASSED [ 12%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRepository PASSED [ 12%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRoot PASSED [ 13%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildInclude PASSED [ 13%]
[ 370s] cpplint_unittest.py::CpplintTest::testBuildPrintfFormat PASSED [ 14%]
[ 371s] cpplint_unittest.py::CpplintTest::testBuildStorageClass PASSED [ 14%]
[ 371s] cpplint_unittest.py::CpplintTest::testCStyleCast PASSED [ 15%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckAltTokens PASSED [ 15%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckCheck PASSED [ 16%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckCheckFalsePositives PASSED [ 16%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckDeprecated PASSED [ 17%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckForUnnamedParams PASSED [ 17%]
[ 371s] cpplint_unittest.py::CpplintTest::testCheckPosixThreading PASSED [ 18%]
[ 371s] cpplint_unittest.py::CpplintTest::testCleanseLine PASSED [ 18%]
[ 371s] cpplint_unittest.py::CpplintTest::testComma PASSED [ 19%]
[ 371s] cpplint_unittest.py::CpplintTest::testConditionals PASSED [ 19%]
[ 371s] cpplint_unittest.py::CpplintTest::testConstStringReferenceMembers PASSED [ 20%]
[ 371s] cpplint_unittest.py::CpplintTest::testDefaultFilter PASSED [ 20%]
[ 371s] cpplint_unittest.py::CpplintTest::testDeprecatedCast PASSED [ 21%]
[ 372s] cpplint_unittest.py::CpplintTest::testDisallowMacrosAtEnd PASSED [ 21%]
[ 372s] cpplint_unittest.py::CpplintTest::testDuplicateHeader PASSED [ 22%]
[ 372s] cpplint_unittest.py::CpplintTest::testElseClauseNotOnSameLineAsElse PASSED [ 22%]
[ 372s] cpplint_unittest.py::CpplintTest::testElseOnSameLineAsClosingBraces PASSED [ 23%]
[ 372s] cpplint_unittest.py::CpplintTest::testEmptyBlockBody PASSED [ 23%]
[ 372s] cpplint_unittest.py::CpplintTest::testEndOfNamespaceComments PASSED [ 24%]
[ 372s] cpplint_unittest.py::CpplintTest::testEqualsOperatorSpacing PASSED [ 24%]
[ 372s] cpplint_unittest.py::CpplintTest::testErrorSuppression PASSED [ 25%]
[ 373s] cpplint_unittest.py::CpplintTest::testExplicitSingleArgumentConstructors PASSED [ 25%]
[ 373s] cpplint_unittest.py::CpplintTest::testFalsePositivesNoError PASSED [ 25%]
[ 373s] cpplint_unittest.py::CpplintTest::testFilesBelongToSameModule PASSED [ 26%]
[ 373s] cpplint_unittest.py::CpplintTest::testFilter PASSED [ 26%]
[ 373s] cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentEnd PASSED [ 27%]
[ 373s] cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentStart PASSED [ 27%]
[ 373s] cpplint_unittest.py::CpplintTest::testFormatStrings PASSED [ 28%]
[ 373s] cpplint_unittest.py::CpplintTest::testForwardDeclarationNameSpaceIndentation PASSED [ 28%]
[ 373s] cpplint_unittest.py::CpplintTest::testGetLineWidth PASSED [ 29%]
[ 373s] cpplint_unittest.py::CpplintTest::testGetTextInside PASSED [ 29%]
[ 373s] cpplint_unittest.py::CpplintTest::testHppInclude PASSED [ 30%]
[ 373s] cpplint_unittest.py::CpplintTest::testIllegalOperatorOverloading PASSED [ 30%]
[ 373s] cpplint_unittest.py::CpplintTest::testIncludeFilenameFalseError PASSED [ 31%]
[ 373s] cpplint_unittest.py::CpplintTest::testIncludeItsHeader PASSED [ 31%]
[ 373s] cpplint_unittest.py::CpplintTest::testIncludeWhatYouUse PASSED [ 32%]
[ 373s] cpplint_unittest.py::CpplintTest::testIncludeWhatYouUseNoImplementationFiles PASSED [ 32%]
[ 373s] cpplint_unittest.py::CpplintTest::testIndent PASSED [ 33%]
[ 373s] cpplint_unittest.py::CpplintTest::testInvalidIncrement PASSED [ 33%]
[ 373s] cpplint_unittest.py::CpplintTest::testInvalidUtf8 PASSED [ 34%]
[ 373s] cpplint_unittest.py::CpplintTest::testIsBlankLine PASSED [ 34%]
[ 373s] cpplint_unittest.py::CpplintTest::testJUnitXML PASSED [ 35%]
[ 373s] cpplint_unittest.py::CpplintTest::testLambda PASSED [ 35%]
[ 373s] cpplint_unittest.py::CpplintTest::testLambdasOnSameLine PASSED [ 36%]
[ 373s] cpplint_unittest.py::CpplintTest::testLegalCopyright PASSED [ 36%]
[ 373s] cpplint_unittest.py::CpplintTest::testLineLength PASSED [ 37%]
[ 373s] cpplint_unittest.py::CpplintTest::testLineLengthCheck PASSED [ 37%]
[ 373s] cpplint_unittest.py::CpplintTest::testLinePrecededByEmptyOrCommentLines PASSED [ 37%]
[ 373s] cpplint_unittest.py::CpplintTest::testMismatchingSpacesInParens PASSED [ 38%]
[ 373s] cpplint_unittest.py::CpplintTest::testMockCallback PASSED [ 38%]
[ 373s] cpplint_unittest.py::CpplintTest::testMockMethod PASSED [ 39%]
[ 373s] cpplint_unittest.py::CpplintTest::testMultiLineComments PASSED [ 39%]
[ 374s] cpplint_unittest.py::CpplintTest::testMultilineStrings PASSED [ 40%]
[ 374s] cpplint_unittest.py::CpplintTest::testMultipleStatementsOnSameLine PASSED [ 40%]
[ 374s] cpplint_unittest.py::CpplintTest::testNameSpaceIndentationForClass PASSED [ 41%]
[ 374s] cpplint_unittest.py::CpplintTest::testNameSpaceIndentationNoError PASSED [ 41%]
[ 374s] cpplint_unittest.py::CpplintTest::testNewlineAtEOF PASSED [ 42%]
[ 374s] cpplint_unittest.py::CpplintTest::testNoBlankLineAfterSectionKeyword PASSED [ 42%]
[ 374s] cpplint_unittest.py::CpplintTest::testNoSpacesInFunctionCalls PASSED [ 43%]
[ 374s] cpplint_unittest.py::CpplintTest::testNonConstReference PASSED [ 43%]
[ 374s] cpplint_unittest.py::CpplintTest::testParseArguments PASSED [ 44%]
[ 374s] cpplint_unittest.py::CpplintTest::testPathSplitToList PASSED [ 44%]
[ 374s] cpplint_unittest.py::CpplintTest::testPragmaOnce PASSED [ 45%]
[ 374s] cpplint_unittest.py::CpplintTest::testQuiet PASSED [ 45%]
[ 374s] cpplint_unittest.py::CpplintTest::testRawStrings PASSED [ 46%]
[ 374s] cpplint_unittest.py::CpplintTest::testRecursiveArgument PASSED [ 46%]
[ 374s] cpplint_unittest.py::CpplintTest::testRecursiveExclude PASSED [ 47%]
[ 374s] cpplint_unittest.py::CpplintTest::testRecursiveExcludeInvalidFileExtension PASSED [ 47%]
[ 374s] cpplint_unittest.py::CpplintTest::testRedundantVirtual PASSED [ 48%]
[ 374s] cpplint_unittest.py::CpplintTest::testRemoveMultiLineCommentsFromRange PASSED [ 48%]
[ 374s] cpplint_unittest.py::CpplintTest::testRuntimeCasting PASSED [ 49%]
[ 374s] cpplint_unittest.py::CpplintTest::testRuntimePrintfFormat PASSED [ 49%]
[ 374s] cpplint_unittest.py::CpplintTest::testRuntimeSelfinit PASSED [ 50%]
[ 374s] cpplint_unittest.py::CpplintTest::testSectionIndent PASSED [ 50%]
[ 374s] cpplint_unittest.py::CpplintTest::testSemiColonAfterBraces PASSED [ 50%]
[ 374s] cpplint_unittest.py::CpplintTest::testShiftOperatorSpacing PASSED [ 51%]
[ 375s] cpplint_unittest.py::CpplintTest::testSlashStarCommentOnSingleLine PASSED [ 51%]
[ 375s] cpplint_unittest.py::CpplintTest::testSnprintfSize PASSED [ 52%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpaceAfterCommentMarker PASSED [ 52%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacesAtEndOfLine PASSED [ 53%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingAroundElse PASSED [ 53%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingBeforeBraces PASSED [ 54%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingBeforeBrackets PASSED [ 54%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingBeforeLastSemicolon PASSED [ 55%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingForBinaryOps PASSED [ 55%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingForFncall PASSED [ 56%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingForRangeBasedFor PASSED [ 56%]
[ 375s] cpplint_unittest.py::CpplintTest::testSpacingWithInitializerLists PASSED [ 57%]
[ 375s] cpplint_unittest.py::CpplintTest::testStaticOrGlobalSTLStrings PASSED [ 57%]
[ 375s] cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfIf PASSED [ 58%]
[ 375s] cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfMemset PASSED [ 58%]
[ 375s] cpplint_unittest.py::CpplintTest::testTab PASSED [ 59%]
[ 375s] cpplint_unittest.py::CpplintTest::testToDoComments PASSED [ 59%]
[ 375s] cpplint_unittest.py::CpplintTest::testTwoSpacesBetweenCodeAndComments PASSED [ 60%]
[ 375s] cpplint_unittest.py::CpplintTest::testTypedefForPointerToFunction PASSED [ 60%]
[ 375s] cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInHeaders PASSED [ 61%]
[ 375s] cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInNonHeaders PASSED [ 61%]
[ 375s] cpplint_unittest.py::CpplintTest::testUsingLiteralsNamespaces PASSED [ 62%]
[ 375s] cpplint_unittest.py::CpplintTest::testVariableDeclarations PASSED [ 62%]
[ 375s] cpplint_unittest.py::CpplintTest::testVariableLengthArrayDetection PASSED [ 62%]
[ 375s] cpplint_unittest.py::CpplintTest::testVlogMisuse PASSED [ 63%]
[ 375s] cpplint_unittest.py::CpplintTest::testWhitespaceBeforeNamespace PASSED [ 63%]
[ 375s] cpplint_unittest.py::Cxx11Test::testBlockedClasses PASSED [ 64%]
[ 375s] cpplint_unittest.py::Cxx11Test::testBlockedFunctions PASSED [ 64%]
[ 375s] cpplint_unittest.py::Cxx11Test::testBlockedHeaders PASSED [ 65%]
[ 375s] cpplint_unittest.py::Cxx11Test::testExplicitMakePair PASSED [ 65%]
[ 375s] cpplint_unittest.py::Cxx14Test::testBlockedHeaders PASSED [ 66%]
[ 375s] cpplint_unittest.py::CleansedLinesTest::testCollapseStrings PASSED [ 66%]
[ 375s] cpplint_unittest.py::CleansedLinesTest::testInit PASSED [ 67%]
[ 375s] cpplint_unittest.py::CleansedLinesTest::testInitEmpty PASSED [ 67%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenC PASSED [ 68%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenLikely PASSED [ 68%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenOtherSys PASSED [ 69%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenPossible PASSED [ 69%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_LikelyThenCpp PASSED [ 70%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenC PASSED [ 70%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenCpp PASSED [ 71%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenPossible PASSED [ 71%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherThenCpp PASSED [ 72%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_PossibleThenCpp PASSED [ 72%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testClassifyInclude PASSED [ 73%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testRegression PASSED [ 73%]
[ 375s] cpplint_unittest.py::OrderOfIncludesTest::testTryDropCommonSuffixes PASSED [ 74%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckClassDefinition PASSED [ 74%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckComplexDefinitionSeverity1 PASSED [ 75%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclaration PASSED [ 75%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclarationWithBlockFollowing PASSED [ 75%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity0 PASSED [ 76%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity1 PASSED [ 76%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity2 PASSED [ 77%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity3 PASSED [ 77%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity4 PASSED [ 78%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity5 PASSED [ 78%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity0 PASSED [ 79%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1 PASSED [ 79%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1v0 PASSED [ 80%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity5 PASSED [ 80%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity0 PASSED [ 81%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1 PASSED [ 81%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1v0 PASSED [ 82%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity2 PASSED [ 82%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity3 PASSED [ 83%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity4 PASSED [ 83%]
[ 376s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity5 PASSED [ 84%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionHugeLines PASSED [ 84%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak PASSED [ 85%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest PASSED [ 85%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForTest PASSED [ 86%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1PlusBlanks PASSED [ 86%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints PASSED [ 87%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithNoLint PASSED [ 87%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity2 PASSED [ 87%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity3 PASSED [ 88%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity4 PASSED [ 88%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckEmpty PASSED [ 89%]
[ 377s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckTrivial PASSED [ 89%]
[ 378s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckWithNamespace PASSED [ 90%]
[ 378s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthNotDeterminable PASSED [ 90%]
[ 378s] cpplint_unittest.py::CloseExpressionTest::testCloseExpression PASSED [ 91%]
[ 378s] cpplint_unittest.py::CloseExpressionTest::testReverseCloseExpression PASSED [ 91%]
[ 378s] cpplint_unittest.py::NestingStateTest::testArguments PASSED [ 92%]
[ 378s] cpplint_unittest.py::NestingStateTest::testClass PASSED [ 92%]
[ 378s] cpplint_unittest.py::NestingStateTest::testClassAccess PASSED [ 93%]
[ 378s] cpplint_unittest.py::NestingStateTest::testDecoratedClass PASSED [ 93%]
[ 378s] cpplint_unittest.py::NestingStateTest::testEmpty PASSED [ 94%]
[ 378s] cpplint_unittest.py::NestingStateTest::testInlineAssembly PASSED [ 94%]
[ 378s] cpplint_unittest.py::NestingStateTest::testInnerClass PASSED [ 95%]
[ 378s] cpplint_unittest.py::NestingStateTest::testNamespace PASSED [ 95%]
[ 378s] cpplint_unittest.py::NestingStateTest::testPreprocessor PASSED [ 96%]
[ 378s] cpplint_unittest.py::NestingStateTest::testStruct PASSED [ 96%]
[ 378s] cpplint_unittest.py::NestingStateTest::testTemplate PASSED [ 97%]
[ 378s] cpplint_unittest.py::NestingStateTest::testTemplateDefaultArg PASSED [ 97%]
[ 378s] cpplint_unittest.py::NestingStateTest::testTemplateInnerClass PASSED [ 98%]
[ 379s] cpplint_unittest.py::QuietTest::testNonQuietWithErrors PASSED [ 98%]
[ 380s] cpplint_unittest.py::QuietTest::testNonQuietWithoutErrors PASSED [ 99%]
[ 381s] cpplint_unittest.py::QuietTest::testQuietWithErrors PASSED [ 99%]
[ 382s] cpplint_unittest.py::QuietTest::testQuietWithoutErrors PASSED [100%]
[ 382s]
[ 382s] ======================= 208 passed in 163.21s (0:02:43) ========================
[ 382s] ++ '[' -f _current_flavor ']'
[ 382s] ++ cat _current_flavor
[ 382s] + last_flavor=python311
[ 382s] + '[' -z python311 ']'
[ 382s] + '[' python311 '!=' python312 ']'
[ 382s] + '[' -d build ']'
[ 382s] + mv build _build.python311
[ 382s] + '[' -d _build.python312 ']'
[ 382s] + mv _build.python312 build
[ 382s] + echo python312
[ 382s] + python_flavor=python312
[ 382s] + PYTHONPATH=/home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/BUILDROOT/usr/lib/python3.12/site-packages
[ 382s] + PYTHONDONTWRITEBYTECODE=1
[ 382s] + pytest-3.12 --ignore=_build.python311 --ignore=_build.python312 --ignore=_build.python313 -v
[ 385s] ============================= test session starts ==============================
[ 385s] platform linux -- Python 3.12.11, pytest-8.4.1, pluggy-1.6.0 -- /usr/bin/python3.12
[ 385s] cachedir: .pytest_cache
[ 385s] rootdir: /home/abuild/rpmbuild/BUILD/python-cpplint-1.6.1-build/cpplint-1.6.1
[ 385s] configfile: setup.cfg
[ 385s] testpaths: .
[ 387s] collecting ... collected 208 items
[ 387s]
[ 388s] cpplint_clitest.py::UsageTest::testHelp PASSED [ 0%]
[ 419s] cpplint_clitest.py::NoRepoSignatureTests::testBoostSample PASSED [ 0%]
[ 421s] cpplint_clitest.py::NoRepoSignatureTests::testCfgFileSample PASSED [ 1%]
[ 435s] cpplint_clitest.py::NoRepoSignatureTests::testChromiumSample PASSED [ 1%]
[ 438s] cpplint_clitest.py::NoRepoSignatureTests::testCodeliteSample PASSED [ 2%]
[ 533s] cpplint_clitest.py::NoRepoSignatureTests::testProtobufSample PASSED [ 2%]
[ 542s] cpplint_clitest.py::NoRepoSignatureTests::testSillySample PASSED [ 3%]
[ 548s] cpplint_clitest.py::NoRepoSignatureTests::testV8Sample PASSED [ 3%]
[ 553s] cpplint_clitest.py::NoRepoSignatureTests::testVlcSample PASSED [ 4%]
[ 557s] cpplint_clitest.py::GitRepoSignatureTests::testCodeliteSample PASSED [ 4%]
[ 561s] cpplint_clitest.py::MercurialRepoSignatureTests::testCodeliteSample PASSED [ 5%]
[ 565s] cpplint_clitest.py::SvnRepoSignatureTests::testCodeliteSample PASSED [ 5%]
[ 566s] cpplint_unittest.py::CpplintTest::testAllowBlankLineAfterExtern FAILED [ 6%]
[ 567s] cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeClosingNamespace FAILED [ 6%]
[ 568s] cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeIfElseChain FAILED [ 7%]
[ 569s] cpplint_unittest.py::CpplintTest::testAllowBlankLinesInRawStrings FAILED [ 7%]
[ 570s] cpplint_unittest.py::CpplintTest::testBadCharacters FAILED [ 8%]
[ 571s] cpplint_unittest.py::CpplintTest::testBlankLineBeforeSectionKeyword FAILED [ 8%]
[ 573s] cpplint_unittest.py::CpplintTest::testBlankLinesCheck FAILED [ 9%]
[ 575s] cpplint_unittest.py::CpplintTest::testBraceAtBeginOfLine FAILED [ 9%]
[ 576s] cpplint_unittest.py::CpplintTest::testBraceInitializerList FAILED [ 10%]
[ 578s] cpplint_unittest.py::CpplintTest::testBraces FAILED [ 10%]
[ 579s] cpplint_unittest.py::CpplintTest::testBuildClass FAILED [ 11%]
[ 581s] cpplint_unittest.py::CpplintTest::testBuildEndComment FAILED [ 11%]
[ 583s] cpplint_unittest.py::CpplintTest::testBuildForwardDecl FAILED [ 12%]
[ 584s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuard FAILED [ 12%]
[ 585s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRepository FAILED [ 12%]
[ 587s] cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRoot FAILED [ 13%]
[ 588s] cpplint_unittest.py::CpplintTest::testBuildInclude FAILED [ 13%]
[ 589s] cpplint_unittest.py::CpplintTest::testBuildPrintfFormat FAILED [ 14%]
[ 591s] cpplint_unittest.py::CpplintTest::testBuildStorageClass FAILED [ 14%]
[ 592s] cpplint_unittest.py::CpplintTest::testCStyleCast FAILED [ 15%]
[ 594s] cpplint_unittest.py::CpplintTest::testCheckAltTokens FAILED [ 15%]
[ 595s] cpplint_unittest.py::CpplintTest::testCheckCheck FAILED [ 16%]
[ 597s] cpplint_unittest.py::CpplintTest::testCheckCheckFalsePositives FAILED [ 16%]
[ 598s] cpplint_unittest.py::CpplintTest::testCheckDeprecated FAILED [ 17%]
[ 600s] cpplint_unittest.py::CpplintTest::testCheckForUnnamedParams FAILED [ 17%]
[ 601s] cpplint_unittest.py::CpplintTest::testCheckPosixThreading FAILED [ 18%]
[ 602s] cpplint_unittest.py::CpplintTest::testCleanseLine FAILED [ 18%]
[ 604s] cpplint_unittest.py::CpplintTest::testComma FAILED [ 19%]
[ 605s] cpplint_unittest.py::CpplintTest::testConditionals FAILED [ 19%]
[ 607s] cpplint_unittest.py::CpplintTest::testConstStringReferenceMembers FAILED [ 20%]
[ 608s] cpplint_unittest.py::CpplintTest::testDefaultFilter FAILED [ 20%]
[ 610s] cpplint_unittest.py::CpplintTest::testDeprecatedCast FAILED [ 21%]
[ 611s] cpplint_unittest.py::CpplintTest::testDisallowMacrosAtEnd FAILED [ 21%]
[ 612s] cpplint_unittest.py::CpplintTest::testDuplicateHeader FAILED [ 22%]
[ 613s] cpplint_unittest.py::CpplintTest::testElseClauseNotOnSameLineAsElse FAILED [ 22%]
[ 614s] cpplint_unittest.py::CpplintTest::testElseOnSameLineAsClosingBraces FAILED [ 23%]
[ 616s] cpplint_unittest.py::CpplintTest::testEmptyBlockBody FAILED [ 23%]
[ 617s] cpplint_unittest.py::CpplintTest::testEndOfNamespaceComments FAILED [ 24%]
[ 619s] cpplint_unittest.py::CpplintTest::testEqualsOperatorSpacing FAILED [ 24%]
[ 620s] cpplint_unittest.py::CpplintTest::testErrorSuppression FAILED [ 25%]
[ 622s] cpplint_unittest.py::CpplintTest::testExplicitSingleArgumentConstructors FAILED [ 25%]
[ 623s] cpplint_unittest.py::CpplintTest::testFalsePositivesNoError FAILED [ 25%]
[ 624s] cpplint_unittest.py::CpplintTest::testFilesBelongToSameModule FAILED [ 26%]
[ 625s] cpplint_unittest.py::CpplintTest::testFilter FAILED [ 26%]
[ 626s] cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentEnd FAILED [ 27%]
[ 627s] cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentStart FAILED [ 27%]
[ 629s] cpplint_unittest.py::CpplintTest::testFormatStrings FAILED [ 28%]
[ 630s] cpplint_unittest.py::CpplintTest::testForwardDeclarationNameSpaceIndentation FAILED [ 28%]
[ 631s] cpplint_unittest.py::CpplintTest::testGetLineWidth FAILED [ 29%]
[ 632s] cpplint_unittest.py::CpplintTest::testGetTextInside FAILED [ 29%]
[ 634s] cpplint_unittest.py::CpplintTest::testHppInclude FAILED [ 30%]
[ 635s] cpplint_unittest.py::CpplintTest::testIllegalOperatorOverloading FAILED [ 30%]
[ 636s] cpplint_unittest.py::CpplintTest::testIncludeFilenameFalseError FAILED [ 31%]
[ 637s] cpplint_unittest.py::CpplintTest::testIncludeItsHeader PASSED [ 31%]
[ 638s] cpplint_unittest.py::CpplintTest::testIncludeWhatYouUse FAILED [ 32%]
[ 639s] cpplint_unittest.py::CpplintTest::testIncludeWhatYouUseNoImplementationFiles FAILED [ 32%]
[ 640s] cpplint_unittest.py::CpplintTest::testIndent FAILED [ 33%]
[ 642s] cpplint_unittest.py::CpplintTest::testInvalidIncrement FAILED [ 33%]
[ 643s] cpplint_unittest.py::CpplintTest::testInvalidUtf8 FAILED [ 34%]
[ 644s] cpplint_unittest.py::CpplintTest::testIsBlankLine FAILED [ 34%]
[ 645s] cpplint_unittest.py::CpplintTest::testJUnitXML FAILED [ 35%]
[ 647s] cpplint_unittest.py::CpplintTest::testLambda FAILED [ 35%]
[ 648s] cpplint_unittest.py::CpplintTest::testLambdasOnSameLine FAILED [ 36%]
[ 649s] cpplint_unittest.py::CpplintTest::testLegalCopyright FAILED [ 36%]
[ 650s] cpplint_unittest.py::CpplintTest::testLineLength FAILED [ 37%]
[ 652s] cpplint_unittest.py::CpplintTest::testLineLengthCheck FAILED [ 37%]
[ 653s] cpplint_unittest.py::CpplintTest::testLinePrecededByEmptyOrCommentLines FAILED [ 37%]
[ 655s] cpplint_unittest.py::CpplintTest::testMismatchingSpacesInParens FAILED [ 38%]
[ 656s] cpplint_unittest.py::CpplintTest::testMockCallback FAILED [ 38%]
[ 658s] cpplint_unittest.py::CpplintTest::testMockMethod FAILED [ 39%]
[ 659s] cpplint_unittest.py::CpplintTest::testMultiLineComments FAILED [ 39%]
[ 660s] cpplint_unittest.py::CpplintTest::testMultilineStrings FAILED [ 40%]
[ 661s] cpplint_unittest.py::CpplintTest::testMultipleStatementsOnSameLine FAILED [ 40%]
[ 663s] cpplint_unittest.py::CpplintTest::testNameSpaceIndentationForClass FAILED [ 41%]
[ 664s] cpplint_unittest.py::CpplintTest::testNameSpaceIndentationNoError FAILED [ 41%]
[ 666s] cpplint_unittest.py::CpplintTest::testNewlineAtEOF FAILED [ 42%]
[ 667s] cpplint_unittest.py::CpplintTest::testNoBlankLineAfterSectionKeyword FAILED [ 42%]
[ 668s] cpplint_unittest.py::CpplintTest::testNoSpacesInFunctionCalls FAILED [ 43%]
[ 669s] cpplint_unittest.py::CpplintTest::testNonConstReference FAILED [ 43%]
[ 670s] cpplint_unittest.py::CpplintTest::testParseArguments FAILED [ 44%]
[ 671s] cpplint_unittest.py::CpplintTest::testPathSplitToList FAILED [ 44%]
[ 672s] cpplint_unittest.py::CpplintTest::testPragmaOnce FAILED [ 45%]
[ 673s] cpplint_unittest.py::CpplintTest::testQuiet FAILED [ 45%]
[ 675s] cpplint_unittest.py::CpplintTest::testRawStrings FAILED [ 46%]
[ 676s] cpplint_unittest.py::CpplintTest::testRecursiveArgument FAILED [ 46%]
[ 677s] cpplint_unittest.py::CpplintTest::testRecursiveExclude FAILED [ 47%]
[ 678s] cpplint_unittest.py::CpplintTest::testRecursiveExcludeInvalidFileExtension FAILED [ 47%]
[ 679s] cpplint_unittest.py::CpplintTest::testRedundantVirtual FAILED [ 48%]
[ 680s] cpplint_unittest.py::CpplintTest::testRemoveMultiLineCommentsFromRange FAILED [ 48%]
[ 681s] cpplint_unittest.py::CpplintTest::testRuntimeCasting FAILED [ 49%]
[ 683s] cpplint_unittest.py::CpplintTest::testRuntimePrintfFormat FAILED [ 49%]
[ 684s] cpplint_unittest.py::CpplintTest::testRuntimeSelfinit FAILED [ 50%]
[ 686s] cpplint_unittest.py::CpplintTest::testSectionIndent FAILED [ 50%]
[ 687s] cpplint_unittest.py::CpplintTest::testSemiColonAfterBraces FAILED [ 50%]
[ 688s] cpplint_unittest.py::CpplintTest::testShiftOperatorSpacing FAILED [ 51%]
[ 690s] cpplint_unittest.py::CpplintTest::testSlashStarCommentOnSingleLine FAILED [ 51%]
[ 691s] cpplint_unittest.py::CpplintTest::testSnprintfSize FAILED [ 52%]
[ 693s] cpplint_unittest.py::CpplintTest::testSpaceAfterCommentMarker FAILED [ 52%]
[ 694s] cpplint_unittest.py::CpplintTest::testSpacesAtEndOfLine FAILED [ 53%]
[ 696s] cpplint_unittest.py::CpplintTest::testSpacingAroundElse FAILED [ 53%]
[ 697s] cpplint_unittest.py::CpplintTest::testSpacingBeforeBraces FAILED [ 54%]
[ 698s] cpplint_unittest.py::CpplintTest::testSpacingBeforeBrackets FAILED [ 54%]
[ 700s] cpplint_unittest.py::CpplintTest::testSpacingBeforeLastSemicolon FAILED [ 55%]
[ 701s] cpplint_unittest.py::CpplintTest::testSpacingForBinaryOps FAILED [ 55%]
[ 703s] cpplint_unittest.py::CpplintTest::testSpacingForFncall FAILED [ 56%]
[ 704s] cpplint_unittest.py::CpplintTest::testSpacingForRangeBasedFor FAILED [ 56%]
[ 705s] cpplint_unittest.py::CpplintTest::testSpacingWithInitializerLists FAILED [ 57%]
[ 707s] cpplint_unittest.py::CpplintTest::testStaticOrGlobalSTLStrings FAILED [ 57%]
[ 708s] cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfIf FAILED [ 58%]
[ 710s] cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfMemset FAILED [ 58%]
[ 711s] cpplint_unittest.py::CpplintTest::testTab FAILED [ 59%]
[ 712s] cpplint_unittest.py::CpplintTest::testToDoComments FAILED [ 59%]
[ 714s] cpplint_unittest.py::CpplintTest::testTwoSpacesBetweenCodeAndComments FAILED [ 60%]
[ 715s] cpplint_unittest.py::CpplintTest::testTypedefForPointerToFunction FAILED [ 60%]
[ 717s] cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInHeaders FAILED [ 61%]
[ 718s] cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInNonHeaders FAILED [ 61%]
[ 720s] cpplint_unittest.py::CpplintTest::testUsingLiteralsNamespaces FAILED [ 62%]
[ 721s] cpplint_unittest.py::CpplintTest::testVariableDeclarations FAILED [ 62%]
[ 722s] cpplint_unittest.py::CpplintTest::testVariableLengthArrayDetection FAILED [ 62%]
[ 724s] cpplint_unittest.py::CpplintTest::testVlogMisuse FAILED [ 63%]
[ 725s] cpplint_unittest.py::CpplintTest::testWhitespaceBeforeNamespace FAILED [ 63%]
[ 727s] cpplint_unittest.py::Cxx11Test::testBlockedClasses FAILED [ 64%]
[ 728s] cpplint_unittest.py::Cxx11Test::testBlockedFunctions FAILED [ 64%]
[ 729s] cpplint_unittest.py::Cxx11Test::testBlockedHeaders FAILED [ 65%]
[ 731s] cpplint_unittest.py::Cxx11Test::testExplicitMakePair FAILED [ 65%]
[ 732s] cpplint_unittest.py::Cxx14Test::testBlockedHeaders FAILED [ 66%]
[ 733s] cpplint_unittest.py::CleansedLinesTest::testCollapseStrings FAILED [ 66%]
[ 734s] cpplint_unittest.py::CleansedLinesTest::testInit FAILED [ 67%]
[ 735s] cpplint_unittest.py::CleansedLinesTest::testInitEmpty FAILED [ 67%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenC PASSED [ 68%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenLikely PASSED [ 68%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenOtherSys PASSED [ 69%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_CppThenPossible PASSED [ 69%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_LikelyThenCpp PASSED [ 70%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenC PASSED [ 70%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenCpp PASSED [ 71%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherSysThenPossible PASSED [ 71%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_OtherThenCpp PASSED [ 72%]
[ 735s] cpplint_unittest.py::OrderOfIncludesTest::testCheckNextIncludeOrder_PossibleThenCpp PASSED [ 72%]
[ 736s] cpplint_unittest.py::OrderOfIncludesTest::testClassifyInclude FAILED [ 73%]
[ 738s] cpplint_unittest.py::OrderOfIncludesTest::testRegression FAILED [ 73%]
[ 738s] cpplint_unittest.py::OrderOfIncludesTest::testTryDropCommonSuffixes PASSED [ 74%]
[ 739s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckClassDefinition FAILED [ 74%]
[ 740s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckComplexDefinitionSeverity1 FAILED [ 75%]
[ 742s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclaration FAILED [ 75%]
[ 743s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclarationWithBlockFollowing FAILED [ 75%]
[ 745s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity0 FAILED [ 76%]
[ 748s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity1 FAILED [ 76%]
[ 750s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity2 FAILED [ 77%]
[ 753s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity3 FAILED [ 77%]
[ 755s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity4 FAILED [ 78%]
[ 758s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity5 FAILED [ 78%]
[ 760s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity0 FAILED [ 79%]
[ 762s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1 FAILED [ 79%]
[ 764s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1v0 FAILED [ 80%]
[ 766s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity5 FAILED [ 80%]
[ 768s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity0 FAILED [ 81%]
[ 770s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1 FAILED [ 81%]
[ 773s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1v0 FAILED [ 82%]
[ 775s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity2 FAILED [ 82%]
[ 777s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity3 FAILED [ 83%]
[ 779s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity4 FAILED [ 83%]
[ 782s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity5 FAILED [ 84%]
[ 783s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionHugeLines FAILED [ 84%]
[ 785s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak FAILED [ 85%]
[ 786s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest FAILED [ 85%]
[ 788s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForTest FAILED [ 86%]
[ 789s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1PlusBlanks FAILED [ 86%]
[ 791s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints FAILED [ 87%]
[ 792s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithNoLint FAILED [ 87%]
[ 795s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity2 FAILED [ 87%]
[ 797s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity3 FAILED [ 88%]
[ 799s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity4 FAILED [ 88%]
[ 801s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckEmpty FAILED [ 89%]
[ 802s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckTrivial FAILED [ 89%]
[ 804s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckWithNamespace FAILED [ 90%]
[ 805s] cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthNotDeterminable FAILED [ 90%]
[ 806s] cpplint_unittest.py::CloseExpressionTest::testCloseExpression FAILED [ 91%]
[ 807s] cpplint_unittest.py::CloseExpressionTest::testReverseCloseExpression FAILED [ 91%]
[ 808s] cpplint_unittest.py::NestingStateTest::testArguments FAILED [ 92%]
[ 809s] cpplint_unittest.py::NestingStateTest::testClass FAILED [ 92%]
[ 810s] cpplint_unittest.py::NestingStateTest::testClassAccess FAILED [ 93%]
[ 811s] cpplint_unittest.py::NestingStateTest::testDecoratedClass FAILED [ 93%]
[ 812s] cpplint_unittest.py::NestingStateTest::testEmpty FAILED [ 94%]
[ 813s] cpplint_unittest.py::NestingStateTest::testInlineAssembly FAILED [ 94%]
[ 814s] cpplint_unittest.py::NestingStateTest::testInnerClass FAILED [ 95%]
[ 815s] cpplint_unittest.py::NestingStateTest::testNamespace FAILED [ 95%]
[ 816s] cpplint_unittest.py::NestingStateTest::testPreprocessor FAILED [ 96%]
[ 817s] cpplint_unittest.py::NestingStateTest::testStruct FAILED [ 96%]
[ 818s] cpplint_unittest.py::NestingStateTest::testTemplate FAILED [ 97%]
[ 819s] cpplint_unittest.py::NestingStateTest::testTemplateDefaultArg FAILED [ 97%]
[ 820s] cpplint_unittest.py::NestingStateTest::testTemplateInnerClass FAILED [ 98%]
[ 822s] cpplint_unittest.py::QuietTest::testNonQuietWithErrors FAILED [ 98%]
[ 824s] cpplint_unittest.py::QuietTest::testNonQuietWithoutErrors FAILED [ 99%]
[ 827s] cpplint_unittest.py::QuietTest::testQuietWithErrors FAILED [ 99%]
[ 829s] cpplint_unittest.py::QuietTest::testQuietWithoutErrors FAILED [100%]
[ 829s]
[ 829s] =================================== FAILURES ===================================
[ 829s] __________________ CpplintTest.testAllowBlankLineAfterExtern ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testAllowBlankLineAfterExtern>
[ 829s]
[ 829s] def testAllowBlankLineAfterExtern(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3368: AttributeError
[ 829s] _____________ CpplintTest.testAllowBlankLineBeforeClosingNamespace _____________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testAllowBlankLineBeforeClosingNamespace>
[ 829s]
[ 829s] def testAllowBlankLineBeforeClosingNamespace(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3326: AttributeError
[ 829s] _______________ CpplintTest.testAllowBlankLineBeforeIfElseChain ________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testAllowBlankLineBeforeIfElseChain>
[ 829s]
[ 829s] def testAllowBlankLineBeforeIfElseChain(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3351: AttributeError
[ 829s] _________________ CpplintTest.testAllowBlankLinesInRawStrings __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testAllowBlankLinesInRawStrings>
[ 829s]
[ 829s] def testAllowBlankLinesInRawStrings(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3444: AttributeError
[ 829s] ________________________ CpplintTest.testBadCharacters _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBadCharacters>
[ 829s]
[ 829s] def testBadCharacters(self):
[ 829s] # Test for NUL bytes only
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3274: AttributeError
[ 829s] ________________ CpplintTest.testBlankLineBeforeSectionKeyword _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBlankLineBeforeSectionKeyword>
[ 829s]
[ 829s] def testBlankLineBeforeSectionKeyword(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3384: AttributeError
[ 829s] _______________________ CpplintTest.testBlankLinesCheck ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBlankLinesCheck>
[ 829s]
[ 829s] def testBlankLinesCheck(self):
[ 829s] > self.TestBlankLinesCheck(['{\n', '\n', '\n', '}\n'], 1, 1)
[ 829s]
[ 829s] cpplint_unittest.py:3310:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:277: in TestBlankLinesCheck
[ 829s] self.doTestBlankLinesCheck(lines, start_errors, end_errors, extension)
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBlankLinesCheck>
[ 829s] lines = ['{\n', '\n', '\n', '}\n'], start_errors = 1, end_errors = 1
[ 829s] extension = 'c'
[ 829s]
[ 829s] def doTestBlankLinesCheck(self, lines, start_errors, end_errors, extension):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:280: AttributeError
[ 829s] ______________________ CpplintTest.testBraceAtBeginOfLine ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraceAtBeginOfLine>
[ 829s]
[ 829s] def testBraceAtBeginOfLine(self):
[ 829s] > self.TestLint('{',
[ 829s] '{ should almost always be at the end of the previous line'
[ 829s] ' [whitespace/braces] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:2544:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraceAtBeginOfLine>
[ 829s] code = '{'
[ 829s] expected_message = '{ should almost always be at the end of the previous line [whitespace/braces] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testBraceInitializerList _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraceInitializerList>
[ 829s]
[ 829s] def testBraceInitializerList(self):
[ 829s] > self.TestLint('MyStruct p = {1, 2};', '')
[ 829s]
[ 829s] cpplint_unittest.py:2742:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraceInitializerList>
[ 829s] code = 'MyStruct p = {1, 2};', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ____________________________ CpplintTest.testBraces ____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraces>
[ 829s]
[ 829s] def testBraces(self):
[ 829s] # Braces shouldn't be followed by a ; unless they're defining a struct
[ 829s] # or initializing an array
[ 829s] > self.TestLint('int a[3] = { 1, 2, 3 };', '')
[ 829s]
[ 829s] cpplint_unittest.py:2150:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBraces>
[ 829s] code = 'int a[3] = { 1, 2, 3 };', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________________ CpplintTest.testBuildClass __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildClass>
[ 829s]
[ 829s] def testBuildClass(self):
[ 829s] # Test that the linter can parse to the end of class definitions,
[ 829s] # and that it will report when it can't.
[ 829s] # Use multi-line linter because it performs the ClassState check.
[ 829s] > self.TestMultiLineLint(
[ 829s] 'class Foo {',
[ 829s] 'Failed to find complete declaration of class Foo'
[ 829s] ' [build/class] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:4423:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildClass>
[ 829s] code = 'class Foo {'
[ 829s] expected_message = 'Failed to find complete declaration of class Foo [build/class] [5]'
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _______________________ CpplintTest.testBuildEndComment ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildEndComment>
[ 829s]
[ 829s] def testBuildEndComment(self):
[ 829s] # The crosstool compiler we currently use will fail to compile the
[ 829s] # code in this test, so we might consider removing the lint check.
[ 829s] > self.TestMultiLineLint(
[ 829s] """#if 0
[ 829s] #endif Not a comment""",
[ 829s] 'Uncommented text after #endif is non-standard. Use a comment.'
[ 829s] ' [build/endif_comment] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:4468:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildEndComment>
[ 829s] code = '#if 0\n #endif Not a comment'
[ 829s] expected_message = 'Uncommented text after #endif is non-standard. Use a comment. [build/endif_comment] [5]'
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _______________________ CpplintTest.testBuildForwardDecl _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildForwardDecl>
[ 829s]
[ 829s] def testBuildForwardDecl(self):
[ 829s] # The crosstool compiler we currently use will fail to compile the
[ 829s] # code in this test, so we might consider removing the lint check.
[ 829s] > self.TestLint('class Foo::Goo;',
[ 829s] 'Inner-style forward declarations are invalid.'
[ 829s] ' Remove this line.'
[ 829s] ' [build/forward_decl] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:4477:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildForwardDecl>
[ 829s] code = 'class Foo::Goo;'
[ 829s] expected_message = 'Inner-style forward declarations are invalid. Remove this line. [build/forward_decl] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testBuildHeaderGuard _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildHeaderGuard>
[ 829s]
[ 829s] def testBuildHeaderGuard(self):
[ 829s] file_path = 'mydir/foo.h'
[ 829s] > expected_guard = self.GetBuildHeaderGuardPreprocessorSymbol(file_path)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:4496:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildHeaderGuard>
[ 829s] file_path = 'mydir/foo.h'
[ 829s]
[ 829s] def GetBuildHeaderGuardPreprocessorSymbol(self, file_path):
[ 829s] # Figure out the expected header guard by processing an empty file.
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:4484: AttributeError
[ 829s] ________________ CpplintTest.testBuildHeaderGuardWithRepository ________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildHeaderGuardWithRepository>
[ 829s]
[ 829s] def testBuildHeaderGuardWithRepository(self):
[ 829s] temp_directory = os.path.realpath(tempfile.mkdtemp())
[ 829s] temp_directory2 = os.path.realpath(tempfile.mkdtemp())
[ 829s] try:
[ 829s] os.makedirs(os.path.join(temp_directory, ".svn"))
[ 829s] trunk_dir = os.path.join(temp_directory, "trunk")
[ 829s] os.makedirs(trunk_dir)
[ 829s] header_directory = os.path.join(trunk_dir, "cpplint")
[ 829s] os.makedirs(header_directory)
[ 829s] file_path = os.path.join(header_directory, 'cpplint_test_header.h')
[ 829s] open(file_path, 'a').close()
[ 829s]
[ 829s] # search for .svn if _repository is not specified
[ 829s] > self.assertEquals('TRUNK_CPPLINT_CPPLINT_TEST_HEADER_H_',
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] cpplint.GetHeaderGuardCPPVariable(file_path))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4937: AttributeError
[ 829s] ___________________ CpplintTest.testBuildHeaderGuardWithRoot ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildHeaderGuardWithRoot>
[ 829s]
[ 829s] def testBuildHeaderGuardWithRoot(self):
[ 829s] temp_directory = os.path.realpath(tempfile.mkdtemp())
[ 829s] try:
[ 829s] test_directory = os.path.join(temp_directory, "test")
[ 829s] os.makedirs(test_directory)
[ 829s] os.makedirs(os.path.join(test_directory, ".svn"))
[ 829s] header_directory = os.path.join(test_directory, "cpplint")
[ 829s] os.makedirs(header_directory)
[ 829s] > self.doTestBuildHeaderGuardWithRoot(header_directory)
[ 829s]
[ 829s] cpplint_unittest.py:4725:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildHeaderGuardWithRoot>
[ 829s] header_directory = '/tmp/tmpczu64c25/test/cpplint'
[ 829s]
[ 829s] def doTestBuildHeaderGuardWithRoot(self, header_directory):
[ 829s]
[ 829s] # note: Tested file paths must be real, otherwise
[ 829s] # the repository name lookup will fail.
[ 829s] file_path = os.path.join(header_directory,
[ 829s] 'cpplint_test_header.h')
[ 829s] open(file_path, 'a').close()
[ 829s] file_info = cpplint.FileInfo(file_path)
[ 829s] if file_info.FullName() == file_info.RepositoryName():
[ 829s] # When FileInfo cannot deduce the root directory of the repository,
[ 829s] # FileInfo.RepositoryName returns the same value as FileInfo.FullName.
[ 829s] # This can happen when this source file was obtained without .svn or
[ 829s] # .git directory. (e.g. using 'svn export' or 'git archive').
[ 829s] # Skip this test in such a case because --root flag makes sense only
[ 829s] # when the root directory of the repository is properly deduced.
[ 829s] return
[ 829s]
[ 829s] > self.assertEquals('CPPLINT_CPPLINT_TEST_HEADER_H_',
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] cpplint.GetHeaderGuardCPPVariable(file_path))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4746: AttributeError
[ 829s] _________________________ CpplintTest.testBuildInclude _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildInclude>
[ 829s]
[ 829s] def testBuildInclude(self):
[ 829s] # Test that include statements have slashes in them.
[ 829s] > self.TestLint('#include "foo.h"',
[ 829s] 'Include the directory when naming header files'
[ 829s] ' [build/include_subdir] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:4972:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildInclude>
[ 829s] code = '#include "foo.h"'
[ 829s] expected_message = 'Include the directory when naming header files [build/include_subdir] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testBuildPrintfFormat _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildPrintfFormat>
[ 829s]
[ 829s] def testBuildPrintfFormat(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:4991: AttributeError
[ 829s] ______________________ CpplintTest.testBuildStorageClass _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildStorageClass>
[ 829s]
[ 829s] def testBuildStorageClass(self):
[ 829s] qualifiers = [None, 'const', 'volatile']
[ 829s] signs = [None, 'signed', 'unsigned']
[ 829s] types = ['void', 'char', 'int', 'float', 'double',
[ 829s] 'schar', 'int8', 'uint8', 'int16', 'uint16',
[ 829s] 'int32', 'uint32', 'int64', 'uint64']
[ 829s] storage_classes = ['extern', 'register', 'static', 'typedef']
[ 829s]
[ 829s] build_storage_class_error_message = (
[ 829s] 'Storage-class specifier (static, extern, typedef, etc) should be '
[ 829s] 'at the beginning of the declaration. [build/storage_class] [5]')
[ 829s]
[ 829s] # Some explicit cases. Legal in C++, deprecated in C99.
[ 829s] > self.TestLint('const int static foo = 5;',
[ 829s] build_storage_class_error_message)
[ 829s]
[ 829s] cpplint_unittest.py:5067:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testBuildStorageClass>
[ 829s] code = 'const int static foo = 5;'
[ 829s] expected_message = 'Storage-class specifier (static, extern, typedef, etc) should be at the beginning of the declaration. [build/storage_class] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________________ CpplintTest.testCStyleCast __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCStyleCast>
[ 829s]
[ 829s] def testCStyleCast(self):
[ 829s] > self.TestLint(
[ 829s] 'int a = (int)1.0;',
[ 829s] 'Using C-style cast. Use static_cast<int>(...) instead'
[ 829s] ' [readability/casting] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:610:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCStyleCast>
[ 829s] code = 'int a = (int)1.0;'
[ 829s] expected_message = 'Using C-style cast. Use static_cast<int>(...) instead [readability/casting] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________________ CpplintTest.testCheckAltTokens ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckAltTokens>
[ 829s]
[ 829s] def testCheckAltTokens(self):
[ 829s] > self.TestLint('true or true',
[ 829s] 'Use operator || instead of or'
[ 829s] ' [readability/alt_tokens] [2]')
[ 829s]
[ 829s] cpplint_unittest.py:2314:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckAltTokens>
[ 829s] code = 'true or true'
[ 829s] expected_message = 'Use operator || instead of or [readability/alt_tokens] [2]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________________ CpplintTest.testCheckCheck __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckCheck>
[ 829s]
[ 829s] def testCheckCheck(self):
[ 829s] > self.TestLint('CHECK(x == 42);',
[ 829s] 'Consider using CHECK_EQ instead of CHECK(a == b)'
[ 829s] ' [readability/check] [2]')
[ 829s]
[ 829s] cpplint_unittest.py:2173:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckCheck>
[ 829s] code = 'CHECK(x == 42);'
[ 829s] expected_message = 'Consider using CHECK_EQ instead of CHECK(a == b) [readability/check] [2]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ___________________ CpplintTest.testCheckCheckFalsePositives ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckCheckFalsePositives>
[ 829s]
[ 829s] def testCheckCheckFalsePositives(self):
[ 829s] > self.TestLint('CHECK(some_iterator == obj.end());', '')
[ 829s]
[ 829s] cpplint_unittest.py:2280:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckCheckFalsePositives>
[ 829s] code = 'CHECK(some_iterator == obj.end());', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testCheckDeprecated ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckDeprecated>
[ 829s]
[ 829s] def testCheckDeprecated(self):
[ 829s] > self.TestLanguageRulesCheck('foo_test.cc', '#include <iostream>', '')
[ 829s]
[ 829s] cpplint_unittest.py:1922:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckDeprecated>
[ 829s] file_name = 'foo_test.cc', code = '#include <iostream>', expected_message = ''
[ 829s]
[ 829s] def TestLanguageRulesCheck(self, file_name, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformLanguageRulesCheck(file_name, code))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:268: AttributeError
[ 829s] ____________________ CpplintTest.testCheckForUnnamedParams _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckForUnnamedParams>
[ 829s]
[ 829s] def testCheckForUnnamedParams(self):
[ 829s] > self.TestLint('virtual void Func(int*) const;', '')
[ 829s]
[ 829s] cpplint_unittest.py:767:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckForUnnamedParams>
[ 829s] code = 'virtual void Func(int*) const;', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testCheckPosixThreading ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckPosixThreading>
[ 829s]
[ 829s] def testCheckPosixThreading(self):
[ 829s] > self.TestLint('var = sctime_r()', '')
[ 829s]
[ 829s] cpplint_unittest.py:1926:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCheckPosixThreading>
[ 829s] code = 'var = sctime_r()', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ CpplintTest.testCleanseLine __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testCleanseLine>
[ 829s]
[ 829s] def testCleanseLine(self):
[ 829s] > self.assertEquals('int foo = 0;',
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] cpplint.CleanseComments('int foo = 0; // danger!'))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:1239: AttributeError
[ 829s] ____________________________ CpplintTest.testComma _____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testComma>
[ 829s]
[ 829s] def testComma(self):
[ 829s] > self.TestLint('a = f(1,2);',
[ 829s] 'Missing space after , [whitespace/comma] [3]')
[ 829s]
[ 829s] cpplint_unittest.py:3641:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testComma>, code = 'a = f(1,2);'
[ 829s] expected_message = 'Missing space after , [whitespace/comma] [3]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ CpplintTest.testConditionals _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testConditionals>
[ 829s]
[ 829s] def testConditionals(self):
[ 829s] > self.TestMultiLineLint(
[ 829s] """
[ 829s] if (foo)
[ 829s] goto fail;
[ 829s] goto fail;""",
[ 829s] 'If/else bodies with multiple statements require braces'
[ 829s] ' [readability/braces] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:3846:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testConditionals>
[ 829s] code = '\n if (foo)\n goto fail;\n goto fail;'
[ 829s] expected_message = 'If/else bodies with multiple statements require braces [readability/braces] [4]'
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _________________ CpplintTest.testConstStringReferenceMembers __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testConstStringReferenceMembers>
[ 829s]
[ 829s] def testConstStringReferenceMembers(self):
[ 829s] errmsg = ('const string& members are dangerous. It is much better to use '
[ 829s] 'alternatives, such as pointers or simple constants.'
[ 829s] ' [runtime/member_string_references] [2]')
[ 829s]
[ 829s] members_declarations = ['const string& church',
[ 829s] 'const string &turing',
[ 829s] 'const string & godel']
[ 829s] # TODO(unknown): Enable also these tests if and when we ever
[ 829s] # decide to check for arbitrary member references.
[ 829s] # "const Turing & a",
[ 829s] # "const Church& a",
[ 829s] # "const vector<int>& a",
[ 829s] # "const Kurt::Godel & godel",
[ 829s] # "const Kazimierz::Kuratowski& kk" ]
[ 829s]
[ 829s] # The Good.
[ 829s]
[ 829s] > self.TestLint('void f(const string&)', '')
[ 829s]
[ 829s] cpplint_unittest.py:2027:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testConstStringReferenceMembers>
[ 829s] code = 'void f(const string&)', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________________ CpplintTest.testDefaultFilter _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDefaultFilter>
[ 829s]
[ 829s] def testDefaultFilter(self):
[ 829s] default_filters = cpplint._DEFAULT_FILTERS
[ 829s] old_filters = cpplint._cpplint_state.filters
[ 829s] cpplint._DEFAULT_FILTERS = ['-whitespace']
[ 829s] try:
[ 829s] # Reset filters
[ 829s] cpplint._cpplint_state.SetFilters('')
[ 829s] > self.TestLint('// Hello there ', '')
[ 829s]
[ 829s] cpplint_unittest.py:4368:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDefaultFilter>
[ 829s] code = '// Hello there ', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________________ CpplintTest.testDeprecatedCast ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDeprecatedCast>
[ 829s]
[ 829s] def testDeprecatedCast(self):
[ 829s] > self.TestLint(
[ 829s] 'int a = int(2.2);',
[ 829s] 'Using deprecated casting style. '
[ 829s] 'Use static_cast<int>(...) instead'
[ 829s] ' [readability/casting] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:800:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDeprecatedCast>
[ 829s] code = 'int a = int(2.2);'
[ 829s] expected_message = 'Using deprecated casting style. Use static_cast<int>(...) instead [readability/casting] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testDisallowMacrosAtEnd ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDisallowMacrosAtEnd>
[ 829s]
[ 829s] def testDisallowMacrosAtEnd(self):
[ 829s] for macro_name in (
[ 829s] 'DISALLOW_COPY_AND_ASSIGN',
[ 829s] 'DISALLOW_IMPLICIT_CONSTRUCTORS'):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:2077: AttributeError
[ 829s] _______________________ CpplintTest.testDuplicateHeader ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testDuplicateHeader>
[ 829s]
[ 829s] def testDuplicateHeader(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:4380: AttributeError
[ 829s] ________________ CpplintTest.testElseClauseNotOnSameLineAsElse _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testElseClauseNotOnSameLineAsElse>
[ 829s]
[ 829s] def testElseClauseNotOnSameLineAsElse(self):
[ 829s] > self.TestLint(' else DoSomethingElse();',
[ 829s] 'Else clause should never be on same line as else '
[ 829s] '(use 2 lines) [whitespace/newline] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:3631:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testElseClauseNotOnSameLineAsElse>
[ 829s] code = ' else DoSomethingElse();'
[ 829s] expected_message = 'Else clause should never be on same line as else (use 2 lines) [whitespace/newline] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________ CpplintTest.testElseOnSameLineAsClosingBraces _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testElseOnSameLineAsClosingBraces>
[ 829s]
[ 829s] def testElseOnSameLineAsClosingBraces(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3457: AttributeError
[ 829s] ________________________ CpplintTest.testEmptyBlockBody ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testEmptyBlockBody>
[ 829s]
[ 829s] def testEmptyBlockBody(self):
[ 829s] > self.TestLint('while (true);',
[ 829s] 'Empty loop bodies should use {} or continue'
[ 829s] ' [whitespace/empty_loop_body] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2876:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testEmptyBlockBody>
[ 829s] code = 'while (true);'
[ 829s] expected_message = 'Empty loop bodies should use {} or continue [whitespace/empty_loop_body] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ____________________ CpplintTest.testEndOfNamespaceComments ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testEndOfNamespaceComments>
[ 829s]
[ 829s] def testEndOfNamespaceComments(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3564: AttributeError
[ 829s] ____________________ CpplintTest.testEqualsOperatorSpacing _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testEqualsOperatorSpacing>
[ 829s]
[ 829s] def testEqualsOperatorSpacing(self):
[ 829s] > self.TestLint('int tmp= a;',
[ 829s] 'Missing spaces around = [whitespace/operators] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:3657:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testEqualsOperatorSpacing>
[ 829s] code = 'int tmp= a;'
[ 829s] expected_message = 'Missing spaces around = [whitespace/operators] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testErrorSuppression _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testErrorSuppression>
[ 829s]
[ 829s] def testErrorSuppression(self):
[ 829s] # Two errors on same line:
[ 829s] > self.TestLint(
[ 829s] 'long a = (int64) 65;',
[ 829s] ['Using C-style cast. Use static_cast<int64>(...) instead'
[ 829s] ' [readability/casting] [4]',
[ 829s] 'Use int16/int64/etc, rather than the C type long'
[ 829s] ' [runtime/int] [4]',
[ 829s] ])
[ 829s]
[ 829s] cpplint_unittest.py:484:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testErrorSuppression>
[ 829s] code = 'long a = (int64) 65;'
[ 829s] expected_message = ['Using C-style cast. Use static_cast<int64>(...) instead [readability/casting] [4]', 'Use int16/int64/etc, rather than the C type long [runtime/int] [4]']
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________ CpplintTest.testExplicitSingleArgumentConstructors ______________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testExplicitSingleArgumentConstructors>
[ 829s]
[ 829s] def testExplicitSingleArgumentConstructors(self):
[ 829s] old_verbose_level = cpplint._cpplint_state.verbose_level
[ 829s] cpplint._cpplint_state.verbose_level = 0
[ 829s]
[ 829s] try:
[ 829s] # missing explicit is bad
[ 829s] > self.TestMultiLineLint(
[ 829s] """
[ 829s] class Foo {
[ 829s] Foo(int f);
[ 829s] };""",
[ 829s] 'Single-parameter constructors should be marked explicit.'
[ 829s] ' [runtime/explicit] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:1392:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testExplicitSingleArgumentConstructors>
[ 829s] code = '\n class Foo {\n Foo(int f);\n };'
[ 829s] expected_message = 'Single-parameter constructors should be marked explicit. [runtime/explicit] [5]'
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] ____________________ CpplintTest.testFalsePositivesNoError _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFalsePositivesNoError>
[ 829s]
[ 829s] def testFalsePositivesNoError(self):
[ 829s] lines = ['namespace Test {',
[ 829s] 'struct OuterClass {',
[ 829s] ' struct NoFalsePositivesHere;',
[ 829s] ' struct NoFalsePositivesHere member_variable;',
[ 829s] '};',
[ 829s] '} // namespace Test']
[ 829s]
[ 829s] > results = self.GetNamespaceResults(lines)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:352:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFalsePositivesNoError>
[ 829s] lines = ['namespace Test {', 'struct OuterClass {', ' struct NoFalsePositivesHere;', ' struct NoFalsePositivesHere member_variable;', '};', '} // namespace Test']
[ 829s]
[ 829s] def GetNamespaceResults(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:297: AttributeError
[ 829s] ___________________ CpplintTest.testFilesBelongToSameModule ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFilesBelongToSameModule>
[ 829s]
[ 829s] def testFilesBelongToSameModule(self):
[ 829s] f = cpplint.FilesBelongToSameModule
[ 829s] > self.assertEquals((True, ''), f('a.cc', 'a.h'))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:1209: AttributeError
[ 829s] ____________________________ CpplintTest.testFilter ____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFilter>
[ 829s]
[ 829s] def testFilter(self):
[ 829s] old_filters = cpplint._cpplint_state.filters
[ 829s] try:
[ 829s] cpplint._cpplint_state.SetFilters('-,+whitespace,-whitespace/indent')
[ 829s] > self.TestLint(
[ 829s] '// Hello there ',
[ 829s] 'Line ends in whitespace. Consider deleting these extra spaces.'
[ 829s] ' [whitespace/end_of_line] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:4352:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFilter>
[ 829s] code = '// Hello there '
[ 829s] expected_message = 'Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________ CpplintTest.testFindNextMultiLineCommentEnd __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFindNextMultiLineCommentEnd>
[ 829s]
[ 829s] def testFindNextMultiLineCommentEnd(self):
[ 829s] > self.assertEquals(1, cpplint.FindNextMultiLineCommentEnd([''], 0))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:397: AttributeError
[ 829s] ________________ CpplintTest.testFindNextMultiLineCommentStart _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFindNextMultiLineCommentStart>
[ 829s]
[ 829s] def testFindNextMultiLineCommentStart(self):
[ 829s] > self.assertEquals(1, cpplint.FindNextMultiLineCommentStart([''], 0))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:388: AttributeError
[ 829s] ________________________ CpplintTest.testFormatStrings _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFormatStrings>
[ 829s]
[ 829s] def testFormatStrings(self):
[ 829s] > self.TestLint('printf("foo")', '')
[ 829s]
[ 829s] cpplint_unittest.py:1971:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testFormatStrings>
[ 829s] code = 'printf("foo")', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ____________ CpplintTest.testForwardDeclarationNameSpaceIndentation ____________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testForwardDeclarationNameSpaceIndentation>
[ 829s]
[ 829s] def testForwardDeclarationNameSpaceIndentation(self):
[ 829s] lines = ['namespace Test {',
[ 829s] ' class ForwardDeclaration;',
[ 829s] '} // namespace Test']
[ 829s]
[ 829s] > results = self.GetNamespaceResults(lines)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:313:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testForwardDeclarationNameSpaceIndentation>
[ 829s] lines = ['namespace Test {', ' class ForwardDeclaration;', '} // namespace Test']
[ 829s]
[ 829s] def GetNamespaceResults(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:297: AttributeError
[ 829s] _________________________ CpplintTest.testGetLineWidth _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testGetLineWidth>
[ 829s]
[ 829s] def testGetLineWidth(self):
[ 829s] > self.assertEquals(0, cpplint.GetLineWidth(''))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:357: AttributeError
[ 829s] ________________________ CpplintTest.testGetTextInside _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testGetTextInside>
[ 829s]
[ 829s] def testGetTextInside(self):
[ 829s] > self.assertEquals('', cpplint._GetTextInside('fun()', r'fun\('))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:365: AttributeError
[ 829s] __________________________ CpplintTest.testHppInclude __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testHppInclude>
[ 829s]
[ 829s] def testHppInclude(self):
[ 829s] code = '\n'.join([
[ 829s] '#include <vector>',
[ 829s] '#include <boost/any.hpp>'
[ 829s] ])
[ 829s] > self.TestLanguageRulesCheck('foo.h', code, '')
[ 829s]
[ 829s] cpplint_unittest.py:4988:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testHppInclude>
[ 829s] file_name = 'foo.h', code = '#include <vector>\n#include <boost/any.hpp>'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestLanguageRulesCheck(self, file_name, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformLanguageRulesCheck(file_name, code))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:268: AttributeError
[ 829s] __________________ CpplintTest.testIllegalOperatorOverloading __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIllegalOperatorOverloading>
[ 829s]
[ 829s] def testIllegalOperatorOverloading(self):
[ 829s] errmsg = ('Unary operator& is dangerous. Do not use it.'
[ 829s] ' [runtime/operator] [4]')
[ 829s] > self.TestLint('void operator=(const Myclass&)', '')
[ 829s]
[ 829s] cpplint_unittest.py:2002:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIllegalOperatorOverloading>
[ 829s] code = 'void operator=(const Myclass&)', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________ CpplintTest.testIncludeFilenameFalseError ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIncludeFilenameFalseError>
[ 829s]
[ 829s] def testIncludeFilenameFalseError(self):
[ 829s] > self.TestLint(
[ 829s] '#include "foo/long-foo.h"',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:917:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIncludeFilenameFalseError>
[ 829s] code = '#include "foo/long-foo.h"', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testIncludeWhatYouUse _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIncludeWhatYouUse>
[ 829s]
[ 829s] def testIncludeWhatYouUse(self):
[ 829s] > self.TestIncludeWhatYouUse(
[ 829s] """#include <vector>
[ 829s] std::vector<int> foo;
[ 829s] """,
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:952:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIncludeWhatYouUse>
[ 829s] code = '#include <vector>\n std::vector<int> foo;\n '
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestIncludeWhatYouUse(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformIncludeWhatYouUse(code))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:272: AttributeError
[ 829s] ____________ CpplintTest.testIncludeWhatYouUseNoImplementationFiles ____________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIncludeWhatYouUseNoImplementationFiles>
[ 829s]
[ 829s] def testIncludeWhatYouUseNoImplementationFiles(self):
[ 829s] code = 'std::vector<int> foo;'
[ 829s] for extension in ['h', 'hpp', 'hxx', 'h++', 'cuh']:
[ 829s] > self.assertEquals('Add #include <vector> for vector<>'
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] ' [build/include_what_you_use] [4]',
[ 829s] self.PerformIncludeWhatYouUse(code, 'foo.' + extension))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:944: AttributeError
[ 829s] ____________________________ CpplintTest.testIndent ____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIndent>
[ 829s]
[ 829s] def testIndent(self):
[ 829s] > self.TestLint('static int noindent;', '')
[ 829s]
[ 829s] cpplint_unittest.py:3708:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIndent>
[ 829s] code = 'static int noindent;', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testInvalidIncrement _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testInvalidIncrement>
[ 829s]
[ 829s] def testInvalidIncrement(self):
[ 829s] > self.TestLint('*count++;',
[ 829s] 'Changing pointer instead of value (or unused value of '
[ 829s] 'operator*). [runtime/invalid_increment] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:5156:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testInvalidIncrement>
[ 829s] code = '*count++;'
[ 829s] expected_message = 'Changing pointer instead of value (or unused value of operator*). [runtime/invalid_increment] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ CpplintTest.testInvalidUtf8 __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testInvalidUtf8>
[ 829s]
[ 829s] def testInvalidUtf8(self):
[ 829s] def DoTest(self, raw_bytes, has_invalid_utf8):
[ 829s] error_collector = ErrorCollector(self.assert_)
[ 829s] if sys.version_info < (3,):
[ 829s] unidata = unicode(raw_bytes, 'utf8', 'replace').split('\n')
[ 829s] else:
[ 829s] unidata = str(raw_bytes, 'utf8', 'replace').split('\n')
[ 829s] cpplint.ProcessFileData(
[ 829s] 'foo.cc', 'cc',
[ 829s] unidata,
[ 829s] error_collector)
[ 829s] # The warning appears only once.
[ 829s] self.assertEquals(
[ 829s] int(has_invalid_utf8),
[ 829s] error_collector.Results().count(
[ 829s] 'Line contains invalid UTF-8'
[ 829s] ' (or Unicode replacement character).'
[ 829s] ' [readability/utf8] [5]'))
[ 829s]
[ 829s] > DoTest(self, codecs_latin_encode('Hello world\n'), False)
[ 829s]
[ 829s] cpplint_unittest.py:3265:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testInvalidUtf8>
[ 829s] raw_bytes = b'Hello world\n', has_invalid_utf8 = False
[ 829s]
[ 829s] def DoTest(self, raw_bytes, has_invalid_utf8):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3248: AttributeError
[ 829s] _________________________ CpplintTest.testIsBlankLine __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testIsBlankLine>
[ 829s]
[ 829s] def testIsBlankLine(self):
[ 829s] > self.assert_(cpplint.IsBlankLine(''))
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3303: AttributeError
[ 829s] ___________________________ CpplintTest.testJUnitXML ___________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testJUnitXML>
[ 829s]
[ 829s] def testJUnitXML(self):
[ 829s] try:
[ 829s] cpplint._cpplint_state._junit_errors = []
[ 829s] cpplint._cpplint_state._junit_failures = []
[ 829s] expected = ('<?xml version="1.0" encoding="UTF-8" ?>\n'
[ 829s] '<testsuite errors="0" failures="0" name="cpplint" tests="1">'
[ 829s] '<testcase name="passed" />'
[ 829s] '</testsuite>')
[ 829s] > self.assertEquals(expected, cpplint._cpplint_state.FormatJUnitXML())
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4265: AttributeError
[ 829s] ____________________________ CpplintTest.testLambda ____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLambda>
[ 829s]
[ 829s] def testLambda(self):
[ 829s] > self.TestLint('auto x = []() {};', '')
[ 829s]
[ 829s] cpplint_unittest.py:2721:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLambda>
[ 829s] code = 'auto x = []() {};', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testLambdasOnSameLine _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLambdasOnSameLine>
[ 829s]
[ 829s] def testLambdasOnSameLine(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3516: AttributeError
[ 829s] ________________________ CpplintTest.testLegalCopyright ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLegalCopyright>
[ 829s]
[ 829s] def testLegalCopyright(self):
[ 829s] legal_copyright_message = (
[ 829s] 'No copyright message found. '
[ 829s] 'You should have a line: "Copyright [year] <Copyright Owner>"'
[ 829s] ' [legal/copyright] [5]')
[ 829s]
[ 829s] copyright_line = '// Copyright 2014 Google Inc. All Rights Reserved.'
[ 829s]
[ 829s] file_path = 'mydir/googleclient/foo.cc'
[ 829s]
[ 829s] # There should be a copyright message in the first 10 lines
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:5124: AttributeError
[ 829s] __________________________ CpplintTest.testLineLength __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLineLength>
[ 829s]
[ 829s] def testLineLength(self):
[ 829s] old_line_length = cpplint._line_length
[ 829s] try:
[ 829s] cpplint._line_length = 80
[ 829s] > self.TestLint(
[ 829s] '// H %s' % ('H' * 75),
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:4330:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLineLength>
[ 829s] code = '// H HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testLineLengthCheck ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLineLengthCheck>
[ 829s]
[ 829s] def testLineLengthCheck(self):
[ 829s] > self.TestLint(
[ 829s] '// Hello',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:414:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLineLengthCheck>
[ 829s] code = '// Hello', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________ CpplintTest.testLinePrecededByEmptyOrCommentLines _______________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLinePrecededByEmptyOrCommentLines>
[ 829s]
[ 829s] def testLinePrecededByEmptyOrCommentLines(self):
[ 829s] def DoTest(self, lines):
[ 829s] error_collector = ErrorCollector(self.assert_)
[ 829s] cpplint.ProcessFileData('foo.cc', 'cc', lines, error_collector)
[ 829s] # The warning appears only once.
[ 829s] self.assertEquals(
[ 829s] 1,
[ 829s] error_collector.Results().count(
[ 829s] 'Do not use namespace using-directives. '
[ 829s] 'Use using-declarations instead.'
[ 829s] ' [build/namespaces] [5]'))
[ 829s] > DoTest(self, ['using namespace foo;'])
[ 829s]
[ 829s] cpplint_unittest.py:3219:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testLinePrecededByEmptyOrCommentLines>
[ 829s] lines = ['using namespace foo;']
[ 829s]
[ 829s] def DoTest(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3210: AttributeError
[ 829s] __________________ CpplintTest.testMismatchingSpacesInParens ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMismatchingSpacesInParens>
[ 829s]
[ 829s] def testMismatchingSpacesInParens(self):
[ 829s] > self.TestLint('if (foo ) {', 'Mismatching spaces inside () in if'
[ 829s] ' [whitespace/parens] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2583:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMismatchingSpacesInParens>
[ 829s] code = 'if (foo ) {'
[ 829s] expected_message = 'Mismatching spaces inside () in if [whitespace/parens] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ CpplintTest.testMockCallback _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMockCallback>
[ 829s]
[ 829s] def testMockCallback(self):
[ 829s] > self.TestLint(
[ 829s] 'MockCallback<bool(int)>',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:908:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMockCallback>
[ 829s] code = 'MockCallback<bool(int)>', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________________ CpplintTest.testMockMethod __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMockMethod>
[ 829s]
[ 829s] def testMockMethod(self):
[ 829s] > self.TestLint(
[ 829s] 'MOCK_METHOD0(method, int());',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:866:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMockMethod>
[ 829s] code = 'MOCK_METHOD0(method, int());', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testMultiLineComments _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMultiLineComments>
[ 829s]
[ 829s] def testMultiLineComments(self):
[ 829s] # missing explicit is bad
[ 829s] > self.TestMultiLineLint(
[ 829s] r"""int a = 0;
[ 829s] /* multi-liner
[ 829s] class Foo {
[ 829s] Foo(int f); // should cause a lint warning in code
[ 829s] }
[ 829s] */ """,
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:1338:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMultiLineComments>
[ 829s] code = 'int a = 0;\n /* multi-liner\n class Foo {\n Foo(int f); // should cause a lint warning in code\n }\n */ '
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _______________________ CpplintTest.testMultilineStrings _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMultilineStrings>
[ 829s]
[ 829s] def testMultilineStrings(self):
[ 829s] multiline_string_error_message = (
[ 829s] 'Multi-line string ("...") found. This lint script doesn\'t '
[ 829s] 'do well with such strings, and may give bogus warnings. '
[ 829s] 'Use C++11 raw strings or concatenation instead.'
[ 829s] ' [readability/multiline_string] [5]')
[ 829s]
[ 829s] for extension in ['c', 'cc', 'cpp', 'cxx', 'c++', 'cu']:
[ 829s] file_path = 'mydir/foo.' + extension
[ 829s]
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:1376: AttributeError
[ 829s] _________________ CpplintTest.testMultipleStatementsOnSameLine _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testMultipleStatementsOnSameLine>
[ 829s]
[ 829s] def testMultipleStatementsOnSameLine(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3497: AttributeError
[ 829s] _________________ CpplintTest.testNameSpaceIndentationForClass _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNameSpaceIndentationForClass>
[ 829s]
[ 829s] def testNameSpaceIndentationForClass(self):
[ 829s] lines = ['namespace Test {',
[ 829s] 'void foo() { }',
[ 829s] ' class Test {',
[ 829s] ' };',
[ 829s] '} // namespace Test']
[ 829s]
[ 829s] > results = self.GetNamespaceResults(lines)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:324:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNameSpaceIndentationForClass>
[ 829s] lines = ['namespace Test {', 'void foo() { }', ' class Test {', ' };', '} // namespace Test']
[ 829s]
[ 829s] def GetNamespaceResults(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:297: AttributeError
[ 829s] _________________ CpplintTest.testNameSpaceIndentationNoError __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNameSpaceIndentationNoError>
[ 829s]
[ 829s] def testNameSpaceIndentationNoError(self):
[ 829s] lines = ['namespace Test {',
[ 829s] 'void foo() { }',
[ 829s] '} // namespace Test']
[ 829s]
[ 829s] > results = self.GetNamespaceResults(lines)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:333:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNameSpaceIndentationNoError>
[ 829s] lines = ['namespace Test {', 'void foo() { }', '} // namespace Test']
[ 829s]
[ 829s] def GetNamespaceResults(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:297: AttributeError
[ 829s] _________________________ CpplintTest.testNewlineAtEOF _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNewlineAtEOF>
[ 829s]
[ 829s] def testNewlineAtEOF(self):
[ 829s] def DoTest(self, data, is_missing_eof):
[ 829s] error_collector = ErrorCollector(self.assert_)
[ 829s] cpplint.ProcessFileData('foo.cc', 'cc', data.split('\n'),
[ 829s] error_collector)
[ 829s] # The warning appears only once.
[ 829s] self.assertEquals(
[ 829s] int(is_missing_eof),
[ 829s] error_collector.Results().count(
[ 829s] 'Could not find a newline character at the end of the file.'
[ 829s] ' [whitespace/ending_newline] [5]'))
[ 829s]
[ 829s] > DoTest(self, '// Newline\n// at EOF\n', False)
[ 829s]
[ 829s] cpplint_unittest.py:3243:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNewlineAtEOF>
[ 829s] data = '// Newline\n// at EOF\n', is_missing_eof = False
[ 829s]
[ 829s] def DoTest(self, data, is_missing_eof):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3233: AttributeError
[ 829s] ________________ CpplintTest.testNoBlankLineAfterSectionKeyword ________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNoBlankLineAfterSectionKeyword>
[ 829s]
[ 829s] def testNoBlankLineAfterSectionKeyword(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:3420: AttributeError
[ 829s] ___________________ CpplintTest.testNoSpacesInFunctionCalls ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNoSpacesInFunctionCalls>
[ 829s]
[ 829s] def testNoSpacesInFunctionCalls(self):
[ 829s] > self.TestLint('TellStory(1, 3);',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:3090:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNoSpacesInFunctionCalls>
[ 829s] code = 'TellStory(1, 3);', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testNonConstReference _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNonConstReference>
[ 829s]
[ 829s] def testNonConstReference(self):
[ 829s] # Passing a non-const reference as function parameter is forbidden.
[ 829s] operand_error_message = ('Is this a non-const reference? '
[ 829s] 'If so, make const or use a pointer: %s'
[ 829s] ' [runtime/references] [2]')
[ 829s] # Warn of use of a non-const reference in operators and functions
[ 829s] > self.TestLint('bool operator>(Foo& s, Foo& f);',
[ 829s] [operand_error_message % 'Foo& s',
[ 829s] operand_error_message % 'Foo& f'])
[ 829s]
[ 829s] cpplint_unittest.py:2366:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testNonConstReference>
[ 829s] code = 'bool operator>(Foo& s, Foo& f);'
[ 829s] expected_message = ['Is this a non-const reference? If so, make const or use a pointer: Foo& s [runtime/references] [2]', 'Is this a non-const reference? If so, make const or use a pointer: Foo& f [runtime/references] [2]']
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________________ CpplintTest.testParseArguments ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testParseArguments>
[ 829s]
[ 829s] def testParseArguments(self):
[ 829s] old_output_format = cpplint._cpplint_state.output_format
[ 829s] old_verbose_level = cpplint._cpplint_state.verbose_level
[ 829s] old_headers = cpplint._hpp_headers
[ 829s] old_filters = cpplint._cpplint_state.filters
[ 829s] old_line_length = cpplint._line_length
[ 829s] old_valid_extensions = cpplint._valid_extensions
[ 829s] try:
[ 829s] # Don't print usage during the tests, or filter categories
[ 829s] sys.stdout = open(os.devnull, 'w')
[ 829s] sys.stderr = open(os.devnull, 'w')
[ 829s]
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, [])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--badopt'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--help'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--version'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--v=0'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--filter='])
[ 829s] # This is illegal because all filters must start with + or -
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--filter=foo'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments,
[ 829s] ['--filter=+a,b,-c'])
[ 829s] self.assertRaises(SystemExit, cpplint.ParseArguments, ['--headers'])
[ 829s]
[ 829s] > self.assertEquals(['foo.cc'], cpplint.ParseArguments(['foo.cc']))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4091: AttributeError
[ 829s] _______________________ CpplintTest.testPathSplitToList ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testPathSplitToList>
[ 829s]
[ 829s] def testPathSplitToList(self):
[ 829s] > self.assertEquals([''],
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] cpplint.PathSplitToList(os.path.join('')))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4909: AttributeError
[ 829s] __________________________ CpplintTest.testPragmaOnce __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testPragmaOnce>
[ 829s]
[ 829s] def testPragmaOnce(self):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:4711: AttributeError
[ 829s] ____________________________ CpplintTest.testQuiet _____________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testQuiet>
[ 829s]
[ 829s] def testQuiet(self):
[ 829s] > self.assertEquals(cpplint._cpplint_state.quiet, False)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4322: AttributeError
[ 829s] __________________________ CpplintTest.testRawStrings __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRawStrings>
[ 829s]
[ 829s] def testRawStrings(self):
[ 829s] > self.TestMultiLineLint(
[ 829s] """
[ 829s] int main() {
[ 829s] struct A {
[ 829s] A(std::string s, A&& a);
[ 829s] };
[ 829s] }""",
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:1257:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRawStrings>
[ 829s] code = '\n int main() {\n struct A {\n A(std::string s, A&& a);\n };\n }'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] ______________________ CpplintTest.testRecursiveArgument _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRecursiveArgument>
[ 829s]
[ 829s] def testRecursiveArgument(self):
[ 829s] working_dir = os.getcwd()
[ 829s] temp_dir = os.path.realpath(tempfile.mkdtemp())
[ 829s] try:
[ 829s] src_dir = os.path.join(temp_dir, "src")
[ 829s] nested_dir = os.path.join(temp_dir, "src", "nested")
[ 829s] os.makedirs(nested_dir)
[ 829s] open(os.path.join(temp_dir, "one.cpp"), 'w').close()
[ 829s] open(os.path.join(src_dir, "two.cpp"), 'w').close()
[ 829s] open(os.path.join(nested_dir, "three.cpp"), 'w').close()
[ 829s] os.chdir(temp_dir)
[ 829s] expected = ['one.cpp', os.path.join('src', 'two.cpp'),
[ 829s] os.path.join('src', 'nested', 'three.cpp')]
[ 829s] cpplint._excludes = None
[ 829s] actual = cpplint.ParseArguments(['--recursive', 'one.cpp', 'src'])
[ 829s] > self.assertEquals(set(expected), set(actual))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4177: AttributeError
[ 829s] _______________________ CpplintTest.testRecursiveExclude _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRecursiveExclude>
[ 829s]
[ 829s] def testRecursiveExclude(self):
[ 829s] working_dir = os.getcwd()
[ 829s] temp_dir = os.path.realpath(tempfile.mkdtemp())
[ 829s] try:
[ 829s] src_dir = os.path.join(temp_dir, 'src')
[ 829s] src2_dir = os.path.join(temp_dir, 'src2')
[ 829s] os.makedirs(src_dir)
[ 829s] os.makedirs(src2_dir)
[ 829s] open(os.path.join(src_dir, 'one.cc'), 'w').close()
[ 829s] open(os.path.join(src_dir, 'two.cc'), 'w').close()
[ 829s] open(os.path.join(src_dir, 'three.cc'), 'w').close()
[ 829s] open(os.path.join(src2_dir, 'one.cc'), 'w').close()
[ 829s] open(os.path.join(src2_dir, 'two.cc'), 'w').close()
[ 829s] open(os.path.join(src2_dir, 'three.cc'), 'w').close()
[ 829s] os.chdir(temp_dir)
[ 829s]
[ 829s] expected = [
[ 829s] os.path.join('src', 'one.cc'),
[ 829s] os.path.join('src', 'two.cc'),
[ 829s] os.path.join('src', 'three.cc')
[ 829s] ]
[ 829s] cpplint._excludes = None
[ 829s] actual = cpplint.ParseArguments(['src'])
[ 829s] > self.assertEquals(set(['src']), set(actual))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4226: AttributeError
[ 829s] _____________ CpplintTest.testRecursiveExcludeInvalidFileExtension _____________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRecursiveExcludeInvalidFileExtension>
[ 829s]
[ 829s] def testRecursiveExcludeInvalidFileExtension(self):
[ 829s] working_dir = os.getcwd()
[ 829s] temp_dir = os.path.realpath(tempfile.mkdtemp())
[ 829s] try:
[ 829s] src_dir = os.path.join(temp_dir, "src")
[ 829s] os.makedirs(src_dir)
[ 829s] open(os.path.join(temp_dir, "one.cpp"), 'w').close()
[ 829s] open(os.path.join(src_dir, "two.cpp"), 'w').close()
[ 829s] open(os.path.join(src_dir, "three.cc"), 'w').close()
[ 829s] os.chdir(temp_dir)
[ 829s] expected = ['one.cpp', os.path.join('src', 'two.cpp')]
[ 829s] cpplint._excludes = None
[ 829s] actual = cpplint.ParseArguments(['--recursive', '--extensions=cpp',
[ 829s] 'one.cpp', 'src'])
[ 829s] > self.assertEquals(set(expected), set(actual))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:4196: AttributeError
[ 829s] _______________________ CpplintTest.testRedundantVirtual _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRedundantVirtual>
[ 829s]
[ 829s] def testRedundantVirtual(self):
[ 829s] > self.TestLint('virtual void F()', '')
[ 829s]
[ 829s] cpplint_unittest.py:1866:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRedundantVirtual>
[ 829s] code = 'virtual void F()', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________ CpplintTest.testRemoveMultiLineCommentsFromRange _______________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRemoveMultiLineCommentsFromRange>
[ 829s]
[ 829s] def testRemoveMultiLineCommentsFromRange(self):
[ 829s] lines = ['a', ' /* comment ', ' * still comment', ' comment */ ', 'b']
[ 829s] cpplint.RemoveMultiLineCommentsFromRange(lines, 1, 4)
[ 829s] > self.assertEquals(['a', '/**/', '/**/', '/**/', 'b'], lines)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:404: AttributeError
[ 829s] ________________________ CpplintTest.testRuntimeCasting ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimeCasting>
[ 829s]
[ 829s] def testRuntimeCasting(self):
[ 829s] error_msg = ('Are you taking an address of a cast? '
[ 829s] 'This is dangerous: could be a temp var. '
[ 829s] 'Take the address before doing the cast, rather than after'
[ 829s] ' [runtime/casting] [4]')
[ 829s] > self.TestLint('int* x = &static_cast<int*>(foo);', error_msg)
[ 829s]
[ 829s] cpplint_unittest.py:719:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimeCasting>
[ 829s] code = 'int* x = &static_cast<int*>(foo);'
[ 829s] expected_message = 'Are you taking an address of a cast? This is dangerous: could be a temp var. Take the address before doing the cast, rather than after [runtime/casting] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testRuntimePrintfFormat ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimePrintfFormat>
[ 829s]
[ 829s] def testRuntimePrintfFormat(self):
[ 829s] > self.TestLint(
[ 829s] r'fprintf(file, "%q", value);',
[ 829s] '%q in format strings is deprecated. Use %ll instead.'
[ 829s] ' [runtime/printf_format] [3]')
[ 829s]
[ 829s] cpplint_unittest.py:5017:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimePrintfFormat>
[ 829s] code = 'fprintf(file, "%q", value);'
[ 829s] expected_message = '%q in format strings is deprecated. Use %ll instead. [runtime/printf_format] [3]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testRuntimeSelfinit ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimeSelfinit>
[ 829s]
[ 829s] def testRuntimeSelfinit(self):
[ 829s] > self.TestLint(
[ 829s] 'Foo::Foo(Bar r, Bel l) : r_(r_), l_(l_) { }',
[ 829s] 'You seem to be initializing a member variable with itself.'
[ 829s] ' [runtime/init] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:750:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testRuntimeSelfinit>
[ 829s] code = 'Foo::Foo(Bar r, Bel l) : r_(r_), l_(l_) { }'
[ 829s] expected_message = 'You seem to be initializing a member variable with itself. [runtime/init] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ________________________ CpplintTest.testSectionIndent _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSectionIndent>
[ 829s]
[ 829s] def testSectionIndent(self):
[ 829s] > self.TestMultiLineLint(
[ 829s] """
[ 829s] class A {
[ 829s] public: // no warning
[ 829s] private: // warning here
[ 829s] };""",
[ 829s] 'private: should be indented +1 space inside class A'
[ 829s] ' [whitespace/indent] [3]')
[ 829s]
[ 829s] cpplint_unittest.py:3767:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSectionIndent>
[ 829s] code = '\n class A {\n public: // no warning\n private: // warning here\n };'
[ 829s] expected_message = 'private: should be indented +1 space inside class A [whitespace/indent] [3]'
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _____________________ CpplintTest.testSemiColonAfterBraces _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSemiColonAfterBraces>
[ 829s]
[ 829s] def testSemiColonAfterBraces(self):
[ 829s] > self.TestLint('if (cond) { func(); };',
[ 829s] 'You don\'t need a ; after a } [readability/braces] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:2683:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSemiColonAfterBraces>
[ 829s] code = 'if (cond) { func(); };'
[ 829s] expected_message = "You don't need a ; after a } [readability/braces] [4]"
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testShiftOperatorSpacing _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testShiftOperatorSpacing>
[ 829s]
[ 829s] def testShiftOperatorSpacing(self):
[ 829s] > self.TestLint('a<<b',
[ 829s] 'Missing spaces around << [whitespace/operators] [3]')
[ 829s]
[ 829s] cpplint_unittest.py:3699:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testShiftOperatorSpacing>
[ 829s] code = 'a<<b'
[ 829s] expected_message = 'Missing spaces around << [whitespace/operators] [3]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________ CpplintTest.testSlashStarCommentOnSingleLine _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSlashStarCommentOnSingleLine>
[ 829s]
[ 829s] def testSlashStarCommentOnSingleLine(self):
[ 829s] > self.TestMultiLineLint(
[ 829s] """/* static */ Foo(int f);""",
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:1796:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSlashStarCommentOnSingleLine>
[ 829s] code = '/* static */ Foo(int f);', expected_message = ''
[ 829s]
[ 829s] def TestMultiLineLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformMultiLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:259: AttributeError
[ 829s] _________________________ CpplintTest.testSnprintfSize _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSnprintfSize>
[ 829s]
[ 829s] def testSnprintfSize(self):
[ 829s] > self.TestLint('vsnprintf(NULL, 0, format)', '')
[ 829s]
[ 829s] cpplint_unittest.py:5161:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSnprintfSize>
[ 829s] code = 'vsnprintf(NULL, 0, format)', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ___________________ CpplintTest.testSpaceAfterCommentMarker ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpaceAfterCommentMarker>
[ 829s]
[ 829s] def testSpaceAfterCommentMarker(self):
[ 829s] > self.TestLint('//', '')
[ 829s]
[ 829s] cpplint_unittest.py:3180:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpaceAfterCommentMarker>
[ 829s] code = '//', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testSpacesAtEndOfLine _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacesAtEndOfLine>
[ 829s]
[ 829s] def testSpacesAtEndOfLine(self):
[ 829s] > self.TestLint(
[ 829s] '// Hello there ',
[ 829s] 'Line ends in whitespace. Consider deleting these extra spaces.'
[ 829s] ' [whitespace/end_of_line] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:407:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacesAtEndOfLine>
[ 829s] code = '// Hello there '
[ 829s] expected_message = 'Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ______________________ CpplintTest.testSpacingAroundElse _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingAroundElse>
[ 829s]
[ 829s] def testSpacingAroundElse(self):
[ 829s] > self.TestLint('}else {', 'Missing space before else'
[ 829s] ' [whitespace/braces] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2796:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingAroundElse>
[ 829s] code = '}else {'
[ 829s] expected_message = 'Missing space before else [whitespace/braces] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testSpacingBeforeBraces ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeBraces>
[ 829s]
[ 829s] def testSpacingBeforeBraces(self):
[ 829s] > self.TestLint('if (foo){', 'Missing space before {'
[ 829s] ' [whitespace/braces] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2663:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeBraces>
[ 829s] code = 'if (foo){'
[ 829s] expected_message = 'Missing space before { [whitespace/braces] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ____________________ CpplintTest.testSpacingBeforeBrackets _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeBrackets>
[ 829s]
[ 829s] def testSpacingBeforeBrackets(self):
[ 829s] > self.TestLint('int numbers [] = { 1, 2, 3 };',
[ 829s] 'Extra space before [ [whitespace/braces] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2713:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeBrackets>
[ 829s] code = 'int numbers [] = { 1, 2, 3 };'
[ 829s] expected_message = 'Extra space before [ [whitespace/braces] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________ CpplintTest.testSpacingBeforeLastSemicolon __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeLastSemicolon>
[ 829s]
[ 829s] def testSpacingBeforeLastSemicolon(self):
[ 829s] > self.TestLint('call_function() ;',
[ 829s] 'Extra space before last semicolon. If this should be an '
[ 829s] 'empty statement, use {} instead.'
[ 829s] ' [whitespace/semicolon] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:2858:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingBeforeLastSemicolon>
[ 829s] code = 'call_function() ;'
[ 829s] expected_message = 'Extra space before last semicolon. If this should be an empty statement, use {} instead. [whitespace/semicolon] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testSpacingForBinaryOps ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForBinaryOps>
[ 829s]
[ 829s] def testSpacingForBinaryOps(self):
[ 829s] > self.TestLint('if (foo||bar) {', 'Missing spaces around ||'
[ 829s] ' [whitespace/operators] [3]')
[ 829s]
[ 829s] cpplint_unittest.py:2808:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForBinaryOps>
[ 829s] code = 'if (foo||bar) {'
[ 829s] expected_message = 'Missing spaces around || [whitespace/operators] [3]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________________ CpplintTest.testSpacingForFncall _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForFncall>
[ 829s]
[ 829s] def testSpacingForFncall(self):
[ 829s] > self.TestLint('if (foo) {', '')
[ 829s]
[ 829s] cpplint_unittest.py:2597:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForFncall>
[ 829s] code = 'if (foo) {', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ___________________ CpplintTest.testSpacingForRangeBasedFor ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForRangeBasedFor>
[ 829s]
[ 829s] def testSpacingForRangeBasedFor(self):
[ 829s] # Basic correctly formatted case:
[ 829s] > self.TestLint('for (int i : numbers) {', '')
[ 829s]
[ 829s] cpplint_unittest.py:2947:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingForRangeBasedFor>
[ 829s] code = 'for (int i : numbers) {', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________ CpplintTest.testSpacingWithInitializerLists __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingWithInitializerLists>
[ 829s]
[ 829s] def testSpacingWithInitializerLists(self):
[ 829s] > self.TestLint('int v[1][3] = {{1, 2, 3}};', '')
[ 829s]
[ 829s] cpplint_unittest.py:2804:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSpacingWithInitializerLists>
[ 829s] code = 'int v[1][3] = {{1, 2, 3}};', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ___________________ CpplintTest.testStaticOrGlobalSTLStrings ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testStaticOrGlobalSTLStrings>
[ 829s]
[ 829s] def testStaticOrGlobalSTLStrings(self):
[ 829s] # A template for the error message for a const global/static string.
[ 829s] error_msg = ('For a static/global string constant, use a C style '
[ 829s] 'string instead: "%s[]". [runtime/string] [4]')
[ 829s] # The error message for a non-const global/static string variable.
[ 829s] nonconst_error_msg = ('Static/global string variables are not permitted.'
[ 829s] ' [runtime/string] [4]')
[ 829s]
[ 829s] > self.TestLint('string foo;',
[ 829s] nonconst_error_msg)
[ 829s]
[ 829s] cpplint_unittest.py:2978:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testStaticOrGlobalSTLStrings>
[ 829s] code = 'string foo;'
[ 829s] expected_message = 'Static/global string variables are not permitted. [runtime/string] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testSuspiciousUsageOfIf ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSuspiciousUsageOfIf>
[ 829s]
[ 829s] def testSuspiciousUsageOfIf(self):
[ 829s] > self.TestLint(
[ 829s] ' if (a == b) {',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:1821:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSuspiciousUsageOfIf>
[ 829s] code = ' if (a == b) {', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] ___________________ CpplintTest.testSuspiciousUsageOfMemset ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSuspiciousUsageOfMemset>
[ 829s]
[ 829s] def testSuspiciousUsageOfMemset(self):
[ 829s] # Normal use is okay.
[ 829s] > self.TestLint(
[ 829s] ' memset(buf, 0, sizeof(buf))',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:1833:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testSuspiciousUsageOfMemset>
[ 829s] code = ' memset(buf, 0, sizeof(buf))', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________________ CpplintTest.testTab ______________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTab>
[ 829s]
[ 829s] def testTab(self):
[ 829s] > self.TestLint('\tint a;',
[ 829s] 'Tab found; better to use spaces [whitespace/tab] [1]')
[ 829s]
[ 829s] cpplint_unittest.py:4062:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTab>, code = '\tint a;'
[ 829s] expected_message = 'Tab found; better to use spaces [whitespace/tab] [1]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ CpplintTest.testToDoComments _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testToDoComments>
[ 829s]
[ 829s] def testToDoComments(self):
[ 829s] start_space = ('Too many spaces before TODO'
[ 829s] ' [whitespace/todo] [2]')
[ 829s] missing_username = ('Missing username in TODO; it should look like '
[ 829s] '"// TODO(my_username): Stuff."'
[ 829s] ' [readability/todo] [2]')
[ 829s] end_space = ('TODO(my_username) should be followed by a space'
[ 829s] ' [whitespace/todo] [2]')
[ 829s]
[ 829s] > self.TestLint('// TODOfix this',
[ 829s] [start_space, missing_username, end_space])
[ 829s]
[ 829s] cpplint_unittest.py:3120:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testToDoComments>
[ 829s] code = '// TODOfix this'
[ 829s] expected_message = ['Too many spaces before TODO [whitespace/todo] [2]', 'Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]', 'TODO(my_username) should be followed by a space [whitespace/todo] [2]']
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _______________ CpplintTest.testTwoSpacesBetweenCodeAndComments ________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTwoSpacesBetweenCodeAndComments>
[ 829s]
[ 829s] def testTwoSpacesBetweenCodeAndComments(self):
[ 829s] > self.TestLint('} // namespace foo',
[ 829s] 'At least two spaces is best between code and comments'
[ 829s] ' [whitespace/comments] [2]')
[ 829s]
[ 829s] cpplint_unittest.py:3142:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTwoSpacesBetweenCodeAndComments>
[ 829s] code = '} // namespace foo'
[ 829s] expected_message = 'At least two spaces is best between code and comments [whitespace/comments] [2]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________ CpplintTest.testTypedefForPointerToFunction __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTypedefForPointerToFunction>
[ 829s]
[ 829s] def testTypedefForPointerToFunction(self):
[ 829s] > self.TestLint(
[ 829s] 'typedef void (*Func)(int x);',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:928:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testTypedefForPointerToFunction>
[ 829s] code = 'typedef void (*Func)(int x);', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________ CpplintTest.testUnnamedNamespacesInHeaders __________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUnnamedNamespacesInHeaders>
[ 829s]
[ 829s] def testUnnamedNamespacesInHeaders(self):
[ 829s] for extension in ['h', 'hpp', 'hxx', 'h++', 'cuh']:
[ 829s] > self.doTestUnnamedNamespacesInHeaders(extension)
[ 829s]
[ 829s] cpplint_unittest.py:4400:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:4403: in doTestUnnamedNamespacesInHeaders
[ 829s] self.TestLanguageRulesCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUnnamedNamespacesInHeaders>
[ 829s] file_name = 'foo.h', code = 'namespace {'
[ 829s] expected_message = 'Do not use unnamed namespaces in header files. See https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Namespaces for more information. [build/namespaces_headers] [4]'
[ 829s]
[ 829s] def TestLanguageRulesCheck(self, file_name, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformLanguageRulesCheck(file_name, code))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:268: AttributeError
[ 829s] ________________ CpplintTest.testUnnamedNamespacesInNonHeaders _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUnnamedNamespacesInNonHeaders>
[ 829s]
[ 829s] def testUnnamedNamespacesInNonHeaders(self):
[ 829s] for extension in ['c', 'cc', 'cpp', 'cxx', 'c++', 'cu']:
[ 829s] > self.TestLanguageRulesCheck('foo.' + extension, 'namespace {', '')
[ 829s]
[ 829s] cpplint_unittest.py:4416:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUnnamedNamespacesInNonHeaders>
[ 829s] file_name = 'foo.c', code = 'namespace {', expected_message = ''
[ 829s]
[ 829s] def TestLanguageRulesCheck(self, file_name, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformLanguageRulesCheck(file_name, code))
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:268: AttributeError
[ 829s] ___________________ CpplintTest.testUsingLiteralsNamespaces ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUsingLiteralsNamespaces>
[ 829s]
[ 829s] def testUsingLiteralsNamespaces(self):
[ 829s] > self.TestLint('using namespace std::literals;', 'Do not use namespace'
[ 829s] ' using-directives. Use using-declarations instead.'
[ 829s] ' [build/namespaces_literals] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:3224:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testUsingLiteralsNamespaces>
[ 829s] code = 'using namespace std::literals;'
[ 829s] expected_message = 'Do not use namespace using-directives. Use using-declarations instead. [build/namespaces_literals] [5]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _____________________ CpplintTest.testVariableDeclarations _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVariableDeclarations>
[ 829s]
[ 829s] def testVariableDeclarations(self):
[ 829s] > self.TestLint(
[ 829s] 'long a = 65;',
[ 829s] 'Use int16/int64/etc, rather than the C type long'
[ 829s] ' [runtime/int] [4]')
[ 829s]
[ 829s] cpplint_unittest.py:596:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVariableDeclarations>
[ 829s] code = 'long a = 65;'
[ 829s] expected_message = 'Use int16/int64/etc, rather than the C type long [runtime/int] [4]'
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________ CpplintTest.testVariableLengthArrayDetection _________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVariableLengthArrayDetection>
[ 829s]
[ 829s] def testVariableLengthArrayDetection(self):
[ 829s] errmsg = ('Do not use variable-length arrays. Use an appropriately named '
[ 829s] "('k' followed by CamelCase) compile-time constant for the size."
[ 829s] ' [runtime/arrays] [1]')
[ 829s]
[ 829s] > self.TestLint('int a[any_old_variable];', errmsg)
[ 829s]
[ 829s] cpplint_unittest.py:2046:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVariableLengthArrayDetection>
[ 829s] code = 'int a[any_old_variable];'
[ 829s] expected_message = "Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size. [runtime/arrays] [1]"
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________________ CpplintTest.testVlogMisuse __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVlogMisuse>
[ 829s]
[ 829s] def testVlogMisuse(self):
[ 829s] > self.TestLint('VLOG(1)', '')
[ 829s]
[ 829s] cpplint_unittest.py:1946:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testVlogMisuse>
[ 829s] code = 'VLOG(1)', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] __________________ CpplintTest.testWhitespaceBeforeNamespace ___________________
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testWhitespaceBeforeNamespace>
[ 829s]
[ 829s] def testWhitespaceBeforeNamespace(self):
[ 829s] lines = [' namespace Test {',
[ 829s] ' void foo() { }',
[ 829s] ' } // namespace Test']
[ 829s]
[ 829s] > results = self.GetNamespaceResults(lines)
[ 829s] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 829s]
[ 829s] cpplint_unittest.py:341:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CpplintTest testMethod=testWhitespaceBeforeNamespace>
[ 829s] lines = [' namespace Test {', ' void foo() { }', ' } // namespace Test']
[ 829s]
[ 829s] def GetNamespaceResults(self, lines):
[ 829s] > error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'CpplintTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:297: AttributeError
[ 829s] _________________________ Cxx11Test.testBlockedClasses _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedClasses>
[ 829s]
[ 829s] def testBlockedClasses(self):
[ 829s] > self.TestCxx11Feature('std::alignment_of<T>',
[ 829s] 'std::alignment_of is an unapproved '
[ 829s] 'C++11 class or function. Send c-style an example '
[ 829s] 'of where it would make your code more readable, '
[ 829s] 'and they may let you use it.'
[ 829s] ' [build/c++11] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:5204:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedClasses>
[ 829s] code = 'std::alignment_of<T>'
[ 829s] expected_error = 'std::alignment_of is an unapproved C++11 class or function. Send c-style an example of where it would make your code more readable, and they may let you use it. [build/c++11] [5]'
[ 829s]
[ 829s] def TestCxx11Feature(self, code, expected_error):
[ 829s] lines = code.split('\n')
[ 829s] > collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'Cxx11Test' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:5189: AttributeError
[ 829s] ________________________ Cxx11Test.testBlockedFunctions ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedFunctions>
[ 829s]
[ 829s] def testBlockedFunctions(self):
[ 829s] > self.TestCxx11Feature('std::alignment_of<int>',
[ 829s] 'std::alignment_of is an unapproved '
[ 829s] 'C++11 class or function. Send c-style an example '
[ 829s] 'of where it would make your code more readable, '
[ 829s] 'and they may let you use it.'
[ 829s] ' [build/c++11] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:5215:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedFunctions>
[ 829s] code = 'std::alignment_of<int>'
[ 829s] expected_error = 'std::alignment_of is an unapproved C++11 class or function. Send c-style an example of where it would make your code more readable, and they may let you use it. [build/c++11] [5]'
[ 829s]
[ 829s] def TestCxx11Feature(self, code, expected_error):
[ 829s] lines = code.split('\n')
[ 829s] > collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'Cxx11Test' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:5189: AttributeError
[ 829s] _________________________ Cxx11Test.testBlockedHeaders _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedHeaders>
[ 829s]
[ 829s] def testBlockedHeaders(self):
[ 829s] > self.TestCxx11Feature('#include <tr1/regex>',
[ 829s] 'C++ TR1 headers such as <tr1/regex> are '
[ 829s] 'unapproved. [build/c++tr1] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:5196:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testBlockedHeaders>
[ 829s] code = '#include <tr1/regex>'
[ 829s] expected_error = 'C++ TR1 headers such as <tr1/regex> are unapproved. [build/c++tr1] [5]'
[ 829s]
[ 829s] def TestCxx11Feature(self, code, expected_error):
[ 829s] lines = code.split('\n')
[ 829s] > collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'Cxx11Test' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:5189: AttributeError
[ 829s] ________________________ Cxx11Test.testExplicitMakePair ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testExplicitMakePair>
[ 829s]
[ 829s] def testExplicitMakePair(self):
[ 829s] > self.TestLint('make_pair', '')
[ 829s]
[ 829s] cpplint_unittest.py:5229:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx11Test testMethod=testExplicitMakePair>
[ 829s] code = 'make_pair', expected_message = ''
[ 829s]
[ 829s] def TestLint(self, code, expected_message):
[ 829s] > self.assertEquals(expected_message, self.PerformSingleLineLint(code))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'Cxx11Test' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:256: AttributeError
[ 829s] _________________________ Cxx14Test.testBlockedHeaders _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx14Test testMethod=testBlockedHeaders>
[ 829s]
[ 829s] def testBlockedHeaders(self):
[ 829s] > self.TestCxx14Feature('#include <scoped_allocator>',
[ 829s] '<scoped_allocator> is an unapproved C++14 header.'
[ 829s] ' [build/c++14] [5]')
[ 829s]
[ 829s] cpplint_unittest.py:5254:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.Cxx14Test testMethod=testBlockedHeaders>
[ 829s] code = '#include <scoped_allocator>'
[ 829s] expected_error = '<scoped_allocator> is an unapproved C++14 header. [build/c++14] [5]'
[ 829s]
[ 829s] def TestCxx14Feature(self, code, expected_error):
[ 829s] lines = code.split('\n')
[ 829s] > collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'Cxx14Test' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:5247: AttributeError
[ 829s] ____________________ CleansedLinesTest.testCollapseStrings _____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CleansedLinesTest testMethod=testCollapseStrings>
[ 829s]
[ 829s] def testCollapseStrings(self):
[ 829s] collapse = cpplint.CleansedLines._CollapseStrings
[ 829s] > self.assertEquals('""', collapse('""')) # "" (empty)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CleansedLinesTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5296: AttributeError
[ 829s] __________________________ CleansedLinesTest.testInit __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CleansedLinesTest testMethod=testInit>
[ 829s]
[ 829s] def testInit(self):
[ 829s] lines = ['Line 1',
[ 829s] 'Line 2',
[ 829s] 'Line 3 // Comment test',
[ 829s] 'Line 4 /* Comment test */',
[ 829s] 'Line 5 "foo"']
[ 829s]
[ 829s] clean_lines = cpplint.CleansedLines(lines)
[ 829s] > self.assertEquals(lines, clean_lines.raw_lines)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CleansedLinesTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5272: AttributeError
[ 829s] _______________________ CleansedLinesTest.testInitEmpty ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.CleansedLinesTest testMethod=testInitEmpty>
[ 829s]
[ 829s] def testInitEmpty(self):
[ 829s] clean_lines = cpplint.CleansedLines([])
[ 829s] > self.assertEquals([], clean_lines.raw_lines)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CleansedLinesTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5291: AttributeError
[ 829s] ___________________ OrderOfIncludesTest.testClassifyInclude ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.OrderOfIncludesTest testMethod=testClassifyInclude>
[ 829s]
[ 829s] def testClassifyInclude(self):
[ 829s] file_info = cpplint.FileInfo
[ 829s] classify_include = cpplint._ClassifyInclude
[ 829s] self.assertEqual(cpplint._C_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'stdio.h',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._C_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'sys/time.h',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._C_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'netipx/ipx.h',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._C_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'arpa/ftp.h',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._CPP_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'string',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._CPP_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'typeinfo',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._C_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'foo/foo.h',
[ 829s] True))
[ 829s] self.assertEqual(cpplint._OTHER_SYS_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'foo/foo.h',
[ 829s] True,
[ 829s] "standardcfirst"))
[ 829s] self.assertEqual(cpplint._OTHER_HEADER,
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'string',
[ 829s] False))
[ 829s] > self.assertEquals(cpplint._OTHER_HEADER,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] classify_include(file_info('foo/foo.cc'),
[ 829s] 'boost/any.hpp',
[ 829s] True))
[ 829s] E AttributeError: 'OrderOfIncludesTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5449: AttributeError
[ 829s] ______________________ OrderOfIncludesTest.testRegression ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.OrderOfIncludesTest testMethod=testRegression>
[ 829s]
[ 829s] def testRegression(self):
[ 829s] def Format(includes):
[ 829s] include_list = []
[ 829s] for item in includes:
[ 829s] if item.startswith('"') or item.startswith('<'):
[ 829s] include_list.append('#include %s\n' % item)
[ 829s] else:
[ 829s] include_list.append(item + '\n')
[ 829s] return ''.join(include_list)
[ 829s]
[ 829s] # Test singleton cases first.
[ 829s] > self.TestLanguageRulesCheck('foo/foo.cc', Format(['"foo/foo.h"']), '')
[ 829s]
[ 829s] cpplint_unittest.py:5518:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.OrderOfIncludesTest testMethod=testRegression>
[ 829s] file_name = 'foo/foo.cc', code = '#include "foo/foo.h"\n', expected_message = ''
[ 829s]
[ 829s] def TestLanguageRulesCheck(self, file_name, code, expected_message):
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformLanguageRulesCheck(file_name, code))
[ 829s] E AttributeError: 'OrderOfIncludesTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:268: AttributeError
[ 829s] ______ CheckForFunctionLengthsTest.testFunctionLengthCheckClassDefinition ______
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckClassDefinition>
[ 829s]
[ 829s] def testFunctionLengthCheckClassDefinition(self):
[ 829s] > self.TestFunctionLengthsCheck( # Not a function definition
[ 829s] 'class Test' + self.FunctionBody(66) + ';',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5766:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckClassDefinition>
[ 829s] code = 'class Test {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_...);\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n};'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckComplexDefinitionSeverity1 _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckComplexDefinitionSeverity1>
[ 829s]
[ 829s] def testFunctionLengthCheckComplexDefinitionSeverity1(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TriggerLines(error_level) + 1
[ 829s] trigger_level = self.TriggerLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('my_namespace::my_other_namespace::MyVeryLongTypeName*\n'
[ 829s] 'my_namespace::my_other_namespace::MyFunction(int arg1, char* arg2)'
[ 829s] + self.FunctionBody(error_lines)),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'my_namespace::my_other_namespace::MyFunction()'
[ 829s] ' has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5830:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckComplexDefinitionSeverity1>
[ 829s] code = 'my_namespace::my_other_namespace::MyVeryLongTypeName*\nmy_namespace::my_other_namespace::MyFunction(int arg1, char* a...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: my_namespace::my_other_namespace::MyFunction() has 21 non-comment lines (error triggered by exceeding 20 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ________ CheckForFunctionLengthsTest.testFunctionLengthCheckDeclaration ________
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDeclaration>
[ 829s]
[ 829s] def testFunctionLengthCheckDeclaration(self):
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'void test();', # Not a function definition
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5755:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDeclaration>
[ 829s] code = 'void test();', expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDeclarationWithBlockFollowing _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDeclarationWithBlockFollowing>
[ 829s]
[ 829s] def testFunctionLengthCheckDeclarationWithBlockFollowing(self):
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('void test();\n'
[ 829s] + self.FunctionBody(66)), # Not a function definition
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5760:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDeclarationWithBlockFollowing>
[ 829s] code = 'void test();\n {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_jus...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity0 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity0>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity0(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(0)
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(0)
[ 829s]
[ 829s] cpplint_unittest.py:5792:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity0>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 11 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [0]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity1 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity1>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity1(self):
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(1)
[ 829s]
[ 829s] cpplint_unittest.py:5812:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity1>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 21 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity2 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity2>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity2(self):
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(2)
[ 829s]
[ 829s] cpplint_unittest.py:5906:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity2>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 41 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [2]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity3 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity3>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity3(self):
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(3)
[ 829s]
[ 829s] cpplint_unittest.py:5915:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity3>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 81 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [3]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity4 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity4>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity4(self):
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(4)
[ 829s]
[ 829s] cpplint_unittest.py:5924:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity4>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 161 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [4]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAboveSeverity5 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity5>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAboveSeverity5(self):
[ 829s] > self.TestFunctionLengthCheckAboveErrorLevel(5)
[ 829s]
[ 829s] cpplint_unittest.py:5933:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5740: in TestFunctionLengthCheckAboveErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)+1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAboveSeverity5>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 321 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [5]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ___ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAtSeverity0 ___
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity0>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAtSeverity0(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(0)
[ 829s] > self.TestFunctionLengthCheckDefinitionOK(self.TriggerLines(0))
[ 829s]
[ 829s] cpplint_unittest.py:5787:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5712: in TestFunctionLengthCheckDefinitionOK
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity0>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ___ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAtSeverity1 ___
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity1>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAtSeverity1(self):
[ 829s] > self.TestFunctionLengthCheckDefinitionOK(self.TriggerLines(1))
[ 829s]
[ 829s] cpplint_unittest.py:5809:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5712: in TestFunctionLengthCheckDefinitionOK
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity1>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] __ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAtSeverity1v0 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity1v0>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAtSeverity1v0(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(0)
[ 829s] > self.TestFunctionLengthCheckAtErrorLevel(1)
[ 829s]
[ 829s] cpplint_unittest.py:5802:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5722: in TestFunctionLengthCheckAtErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level),
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity1v0>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 20 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ___ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionAtSeverity5 ___
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity5>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionAtSeverity5(self):
[ 829s] > self.TestFunctionLengthCheckAtErrorLevel(5)
[ 829s]
[ 829s] cpplint_unittest.py:5930:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5722: in TestFunctionLengthCheckAtErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level),
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionAtSeverity5>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 320 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [5]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity0 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity0>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity0(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(0)
[ 829s] > self.TestFunctionLengthCheckDefinitionOK(self.TriggerLines(0)-1)
[ 829s]
[ 829s] cpplint_unittest.py:5782:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5712: in TestFunctionLengthCheckDefinitionOK
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity0>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity1 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity1>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity1(self):
[ 829s] > self.TestFunctionLengthCheckDefinitionOK(self.TriggerLines(1)-1)
[ 829s]
[ 829s] cpplint_unittest.py:5806:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5712: in TestFunctionLengthCheckDefinitionOK
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity1>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity1v0 _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity1v0>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity1v0(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(0)
[ 829s] > self.TestFunctionLengthCheckBelowErrorLevel(1)
[ 829s]
[ 829s] cpplint_unittest.py:5797:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5731: in TestFunctionLengthCheckBelowErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)-1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity1v0>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 19 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [0]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity2 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity2>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity2(self):
[ 829s] > self.TestFunctionLengthCheckBelowErrorLevel(2)
[ 829s]
[ 829s] cpplint_unittest.py:5900:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5731: in TestFunctionLengthCheckBelowErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)-1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity2>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 39 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity3 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity3>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity3(self):
[ 829s] > self.TestFunctionLengthCheckBelowErrorLevel(3)
[ 829s]
[ 829s] cpplint_unittest.py:5909:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5731: in TestFunctionLengthCheckBelowErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)-1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity3>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 79 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [2]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity4 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity4>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity4(self):
[ 829s] > self.TestFunctionLengthCheckBelowErrorLevel(4)
[ 829s]
[ 829s] cpplint_unittest.py:5918:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5731: in TestFunctionLengthCheckBelowErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)-1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity4>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 159 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [3]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionBelowSeverity5 __
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity5>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionBelowSeverity5(self):
[ 829s] > self.TestFunctionLengthCheckBelowErrorLevel(5)
[ 829s]
[ 829s] cpplint_unittest.py:5927:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5731: in TestFunctionLengthCheckBelowErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level)-1,
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionBelowSeverity5>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 319 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [4]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ____ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionHugeLines ____
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionHugeLines>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionHugeLines(self):
[ 829s] # 5 is the limit
[ 829s] > self.TestFunctionLengthCheckDefinition(self.TriggerLines(10), 5)
[ 829s]
[ 829s] cpplint_unittest.py:5937:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionHugeLines>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 10240 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [5]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TestLines(error_level) + 1
[ 829s] trigger_level = self.TestLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('TEST_F('
[ 829s] + self.FunctionBody(error_lines)),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'TEST_F has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5872:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak>
[ 829s] code = 'TEST_F( {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_tes...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: TEST_F has 51 non-comment lines (error triggered by exceeding 25 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TestLines(error_level) + 1
[ 829s] trigger_level = self.TestLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('TEST_F(GoogleUpdateRecoveryRegistryProtectedTest,\n'
[ 829s] ' FixGoogleUpdate_AllValues_MachineApp)' # note: 4 spaces
[ 829s] + self.FunctionBody(error_lines)),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'TEST_F(GoogleUpdateRecoveryRegistryProtectedTest, ' # 1 space
[ 829s] 'FixGoogleUpdate_AllValues_MachineApp) has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines+1, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5857:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest>
[ 829s] code = 'TEST_F(GoogleUpdateRecoveryRegistryProtectedTest,\n FixGoogleUpdate_AllValues_MachineApp) {\n this_is_just_a_te...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: TEST_F(GoogleUpdateRecoveryRegistryProtectedTest, FixGoogleUpdate_AllValues_MachineApp) has 52 non-comment lines (error triggered by exceeding 25 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1ForTest _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForTest>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1ForTest(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TestLines(error_level) + 1
[ 829s] trigger_level = self.TestLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'TEST_F(Test, Mutator)' + self.FunctionBody(error_lines),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'TEST_F(Test, Mutator) has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5845:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1ForTest>
[ 829s] code = 'TEST_F(Test, Mutator) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: TEST_F(Test, Mutator) has 51 non-comment lines (error triggered by exceeding 25 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1PlusBlanks _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1PlusBlanks>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1PlusBlanks(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TriggerLines(error_level) + 1
[ 829s] trigger_level = self.TriggerLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'void test_blanks(int x)' + self.FunctionBody(error_lines),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'test_blanks() has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5818:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1PlusBlanks>
[ 829s] code = 'void test_blanks(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n th...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test_blanks() has 21 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints(self):
[ 829s] error_level = 1
[ 829s] error_lines = self.TriggerLines(error_level)+1
[ 829s] trigger_level = self.TriggerLines(cpplint._VerboseLevel())
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'void test(int x)' + self.FunctionBodyWithNoLints(error_lines),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'test() has %d non-comment lines '
[ 829s] '(error triggered by exceeding %d lines).'
[ 829s] ' [readability/fn_size] [%d]')
[ 829s] % (error_lines, trigger_level, error_level))
[ 829s]
[ 829s] cpplint_unittest.py:5885:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test(); // NOLINT\n this_is_just_a_test(); // NOLINT\n this_is_just_a_... this_is_just_a_test(); // NOLINT\n this_is_just_a_test(); // NOLINT\n this_is_just_a_test(); // NOLINT\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 21 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [1]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity1WithNoLint _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1WithNoLint>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity1WithNoLint(self):
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('void test(int x)' + self.FunctionBody(self.TriggerLines(1))
[ 829s] + ' // NOLINT -- long function'),
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5894:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity1WithNoLint>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n} // NOLINT -- long function'
[ 829s] expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ____ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity2 ____
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity2>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity2(self):
[ 829s] > self.TestFunctionLengthCheckAtErrorLevel(2)
[ 829s]
[ 829s] cpplint_unittest.py:5903:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5722: in TestFunctionLengthCheckAtErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level),
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity2>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 40 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [2]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ____ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity3 ____
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity3>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity3(self):
[ 829s] > self.TestFunctionLengthCheckAtErrorLevel(3)
[ 829s]
[ 829s] cpplint_unittest.py:5912:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5722: in TestFunctionLengthCheckAtErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level),
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity3>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 80 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [3]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ____ CheckForFunctionLengthsTest.testFunctionLengthCheckDefinitionSeverity4 ____
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity4>
[ 829s]
[ 829s] def testFunctionLengthCheckDefinitionSeverity4(self):
[ 829s] > self.TestFunctionLengthCheckAtErrorLevel(4)
[ 829s]
[ 829s] cpplint_unittest.py:5921:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s] cpplint_unittest.py:5722: in TestFunctionLengthCheckAtErrorLevel
[ 829s] self.TestFunctionLengthCheckDefinition(self.TriggerLines(error_level),
[ 829s] cpplint_unittest.py:5698: in TestFunctionLengthCheckDefinition
[ 829s] self.TestFunctionLengthsCheck(
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckDefinitionSeverity4>
[ 829s] code = 'void test(int x) {\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_j...();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n this_is_just_a_test();\n}'
[ 829s] expected_message = 'Small and focused functions are preferred: test() has 160 non-comment lines (error triggered by exceeding 10 lines). [readability/fn_size] [4]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ___________ CheckForFunctionLengthsTest.testFunctionLengthCheckEmpty ___________
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckEmpty>
[ 829s]
[ 829s] def testFunctionLengthCheckEmpty(self):
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'void test() {\n}',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5776:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckEmpty>
[ 829s] code = 'void test() {\n}', expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] __________ CheckForFunctionLengthsTest.testFunctionLengthCheckTrivial __________
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckTrivial>
[ 829s]
[ 829s] def testFunctionLengthCheckTrivial(self):
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'void test() {}', # Not counted
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5771:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckTrivial>
[ 829s] code = 'void test() {}', expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] _______ CheckForFunctionLengthsTest.testFunctionLengthCheckWithNamespace _______
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckWithNamespace>
[ 829s]
[ 829s] def testFunctionLengthCheckWithNamespace(self):
[ 829s] old_verbosity = cpplint._SetVerboseLevel(1)
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] ('namespace {\n'
[ 829s] 'void CodeCoverageCL35256059() {\n' +
[ 829s] (' X++;\n' * 3000) +
[ 829s] '}\n'
[ 829s] '} // namespace\n'),
[ 829s] ('Small and focused functions are preferred: '
[ 829s] 'CodeCoverageCL35256059() has 3000 non-comment lines '
[ 829s] '(error triggered by exceeding 20 lines).'
[ 829s] ' [readability/fn_size] [5]'))
[ 829s]
[ 829s] cpplint_unittest.py:5957:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthCheckWithNamespace>
[ 829s] code = 'namespace {\nvoid CodeCoverageCL35256059() {\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\...\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n X++;\n}\n} // namespace\n'
[ 829s] expected_message = 'Small and focused functions are preferred: CodeCoverageCL35256059() has 3000 non-comment lines (error triggered by exceeding 20 lines). [readability/fn_size] [5]'
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ________ CheckForFunctionLengthsTest.testFunctionLengthNotDeterminable _________
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthNotDeterminable>
[ 829s]
[ 829s] def testFunctionLengthNotDeterminable(self):
[ 829s] # Macro invocation without terminating semicolon.
[ 829s] > self.TestFunctionLengthsCheck(
[ 829s] 'MACRO(arg)',
[ 829s] '')
[ 829s]
[ 829s] cpplint_unittest.py:5941:
[ 829s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 829s]
[ 829s] self = <cpplint_unittest.CheckForFunctionLengthsTest testMethod=testFunctionLengthNotDeterminable>
[ 829s] code = 'MACRO(arg)', expected_message = ''
[ 829s]
[ 829s] def TestFunctionLengthsCheck(self, code, expected_message):
[ 829s] """Check warnings for long function bodies are as expected.
[ 829s]
[ 829s] Args:
[ 829s] code: C++ source code expected to generate a warning message.
[ 829s] expected_message: Message expected to be generated by the C++ code.
[ 829s] """
[ 829s] > self.assertEquals(expected_message,
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] self.PerformFunctionLengthsCheck(code))
[ 829s] E AttributeError: 'CheckForFunctionLengthsTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:5665: AttributeError
[ 829s] ___________________ CloseExpressionTest.testCloseExpression ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.CloseExpressionTest testMethod=testCloseExpression>
[ 829s]
[ 829s] def testCloseExpression(self):
[ 829s] # List of positions to test:
[ 829s] # (start line, start position, end line, end position + 1)
[ 829s] positions = [(1, 16, 1, 19),
[ 829s] (1, 37, 1, 59),
[ 829s] (1, 60, 3, 1),
[ 829s] (2, 8, 2, 29),
[ 829s] (2, 30, 22, -1), # Left shift operator
[ 829s] (9, 9, 9, 36),
[ 829s] (10, 23, 11, 59),
[ 829s] (11, 54, 22, -1), # Greater than operator
[ 829s] (14, 9, 14, 11),
[ 829s] (14, 11, 14, 13),
[ 829s] (14, 14, 14, 16),
[ 829s] (17, 22, 18, 46),
[ 829s] (18, 47, 20, 1)]
[ 829s] for p in positions:
[ 829s] (_, line, column) = cpplint.CloseExpression(self.lines, p[0], p[1])
[ 829s] > self.assertEquals((p[2], p[3]), (line, column))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CloseExpressionTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6043: AttributeError
[ 829s] ________________ CloseExpressionTest.testReverseCloseExpression ________________
[ 829s]
[ 829s] self = <cpplint_unittest.CloseExpressionTest testMethod=testReverseCloseExpression>
[ 829s]
[ 829s] def testReverseCloseExpression(self):
[ 829s] # List of positions to test:
[ 829s] # (end line, end position, start line, start position)
[ 829s] positions = [(1, 18, 1, 16),
[ 829s] (1, 58, 1, 37),
[ 829s] (2, 27, 2, 10),
[ 829s] (2, 28, 2, 8),
[ 829s] (6, 18, 0, -1), # -> operator
[ 829s] (9, 35, 9, 9),
[ 829s] (11, 54, 0, -1), # Greater than operator
[ 829s] (11, 57, 11, 31),
[ 829s] (14, 10, 14, 9),
[ 829s] (14, 12, 14, 11),
[ 829s] (14, 15, 14, 14),
[ 829s] (18, 45, 17, 22),
[ 829s] (20, 0, 18, 47)]
[ 829s] for p in positions:
[ 829s] (_, line, column) = cpplint.ReverseCloseExpression(self.lines, p[0], p[1])
[ 829s] > self.assertEquals((p[2], p[3]), (line, column))
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'CloseExpressionTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6063: AttributeError
[ 829s] ________________________ NestingStateTest.testArguments ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testArguments>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] __________________________ NestingStateTest.testClass __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testClass>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _______________________ NestingStateTest.testClassAccess _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testClassAccess>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _____________________ NestingStateTest.testDecoratedClass ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testDecoratedClass>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] __________________________ NestingStateTest.testEmpty __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testEmpty>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _____________________ NestingStateTest.testInlineAssembly ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testInlineAssembly>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _______________________ NestingStateTest.testInnerClass ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testInnerClass>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] ________________________ NestingStateTest.testNamespace ________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testNamespace>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] ______________________ NestingStateTest.testPreprocessor _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testPreprocessor>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _________________________ NestingStateTest.testStruct __________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testStruct>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] ________________________ NestingStateTest.testTemplate _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testTemplate>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] ___________________ NestingStateTest.testTemplateDefaultArg ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testTemplateDefaultArg>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] ___________________ NestingStateTest.testTemplateInnerClass ____________________
[ 829s]
[ 829s] self = <cpplint_unittest.NestingStateTest testMethod=testTemplateInnerClass>
[ 829s]
[ 829s] def setUp(self):
[ 829s] self.nesting_state = cpplint.NestingState()
[ 829s] > self.error_collector = ErrorCollector(self.assert_)
[ 829s] ^^^^^^^^^^^^
[ 829s] E AttributeError: 'NestingStateTest' object has no attribute 'assert_'. Did you mean: 'assertIn'?
[ 829s]
[ 829s] cpplint_unittest.py:6070: AttributeError
[ 829s] _______________________ QuietTest.testNonQuietWithErrors _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.QuietTest testMethod=testNonQuietWithErrors>
[ 829s]
[ 829s] def testNonQuietWithErrors(self):
[ 829s] # This will fail: the test header is missing a copyright and header guard.
[ 829s] (return_code, output) = self._runCppLint()
[ 829s] > self.assertEquals(1, return_code)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'QuietTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6479: AttributeError
[ 829s] _____________________ QuietTest.testNonQuietWithoutErrors ______________________
[ 829s]
[ 829s] self = <cpplint_unittest.QuietTest testMethod=testNonQuietWithoutErrors>
[ 829s]
[ 829s] def testNonQuietWithoutErrors(self):
[ 829s] # This will succeed. We filtered out all the known errors for that file.
[ 829s] (return_code, output) = self._runCppLint('--filter=' +
[ 829s] '-legal/copyright,' +
[ 829s] '-build/header_guard')
[ 829s] > self.assertEquals(0, return_code, output)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'QuietTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6502: AttributeError
[ 829s] ________________________ QuietTest.testQuietWithErrors _________________________
[ 829s]
[ 829s] self = <cpplint_unittest.QuietTest testMethod=testQuietWithErrors>
[ 829s]
[ 829s] def testQuietWithErrors(self):
[ 829s] # When there are errors, behavior is identical to not passing --quiet.
[ 829s] (return_code, output) = self._runCppLint('--quiet')
[ 829s] > self.assertEquals(1, return_code)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'QuietTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6490: AttributeError
[ 829s] _______________________ QuietTest.testQuietWithoutErrors _______________________
[ 829s]
[ 829s] self = <cpplint_unittest.QuietTest testMethod=testQuietWithoutErrors>
[ 829s]
[ 829s] def testQuietWithoutErrors(self):
[ 829s] # This will succeed. We filtered out all the known errors for that file.
[ 829s] (return_code, output) = self._runCppLint('--quiet',
[ 829s] '--filter=' +
[ 829s] '-legal/copyright,' +
[ 829s] '-build/header_guard')
[ 829s] > self.assertEquals(0, return_code, output)
[ 829s] ^^^^^^^^^^^^^^^^^
[ 829s] E AttributeError: 'QuietTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
[ 829s]
[ 829s] cpplint_unittest.py:6516: AttributeError
[ 829s] =========================== short test summary info ============================
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testAllowBlankLineAfterExtern - Attr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeClosingNamespace
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testAllowBlankLineBeforeIfElseChain
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testAllowBlankLinesInRawStrings - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBadCharacters - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBlankLineBeforeSectionKeyword - ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBlankLinesCheck - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBraceAtBeginOfLine - AttributeEr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBraceInitializerList - Attribute...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBraces - AttributeError: 'Cpplin...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildClass - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildEndComment - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildForwardDecl - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildHeaderGuard - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRepository
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildHeaderGuardWithRoot - Attri...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildInclude - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildPrintfFormat - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testBuildStorageClass - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCStyleCast - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckAltTokens - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckCheck - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckCheckFalsePositives - Attri...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckDeprecated - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckForUnnamedParams - Attribut...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCheckPosixThreading - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testCleanseLine - AttributeError: 'C...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testComma - AttributeError: 'Cpplint...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testConditionals - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testConstStringReferenceMembers - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testDefaultFilter - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testDeprecatedCast - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testDisallowMacrosAtEnd - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testDuplicateHeader - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testElseClauseNotOnSameLineAsElse - ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testElseOnSameLineAsClosingBraces - ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testEmptyBlockBody - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testEndOfNamespaceComments - Attribu...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testEqualsOperatorSpacing - Attribut...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testErrorSuppression - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testExplicitSingleArgumentConstructors
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFalsePositivesNoError - Attribut...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFilesBelongToSameModule - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFilter - AttributeError: 'Cpplin...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentEnd - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFindNextMultiLineCommentStart - ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testFormatStrings - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testForwardDeclarationNameSpaceIndentation
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testGetLineWidth - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testGetTextInside - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testHppInclude - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIllegalOperatorOverloading - Att...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIncludeFilenameFalseError - Attr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIncludeWhatYouUse - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIncludeWhatYouUseNoImplementationFiles
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIndent - AttributeError: 'Cpplin...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testInvalidIncrement - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testInvalidUtf8 - AttributeError: 'C...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testIsBlankLine - AttributeError: 'C...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testJUnitXML - AttributeError: 'Cppl...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLambda - AttributeError: 'Cpplin...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLambdasOnSameLine - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLegalCopyright - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLineLength - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLineLengthCheck - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testLinePrecededByEmptyOrCommentLines
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMismatchingSpacesInParens - Attr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMockCallback - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMockMethod - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMultiLineComments - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMultilineStrings - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testMultipleStatementsOnSameLine - A...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNameSpaceIndentationForClass - A...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNameSpaceIndentationNoError - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNewlineAtEOF - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNoBlankLineAfterSectionKeyword
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNoSpacesInFunctionCalls - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testNonConstReference - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testParseArguments - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testPathSplitToList - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testPragmaOnce - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testQuiet - AttributeError: 'Cpplint...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRawStrings - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRecursiveArgument - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRecursiveExclude - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRecursiveExcludeInvalidFileExtension
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRedundantVirtual - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRemoveMultiLineCommentsFromRange
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRuntimeCasting - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRuntimePrintfFormat - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testRuntimeSelfinit - AttributeError...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSectionIndent - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSemiColonAfterBraces - Attribute...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testShiftOperatorSpacing - Attribute...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSlashStarCommentOnSingleLine - A...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSnprintfSize - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpaceAfterCommentMarker - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacesAtEndOfLine - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingAroundElse - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingBeforeBraces - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingBeforeBrackets - Attribut...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingBeforeLastSemicolon - Att...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingForBinaryOps - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingForFncall - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingForRangeBasedFor - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSpacingWithInitializerLists - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testStaticOrGlobalSTLStrings - Attri...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfIf - AttributeE...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testSuspiciousUsageOfMemset - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testTab - AttributeError: 'CpplintTe...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testToDoComments - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testTwoSpacesBetweenCodeAndComments
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testTypedefForPointerToFunction - At...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInHeaders - Att...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testUnnamedNamespacesInNonHeaders - ...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testUsingLiteralsNamespaces - Attrib...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testVariableDeclarations - Attribute...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testVariableLengthArrayDetection - A...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testVlogMisuse - AttributeError: 'Cp...
[ 829s] FAILED cpplint_unittest.py::CpplintTest::testWhitespaceBeforeNamespace - Attr...
[ 829s] FAILED cpplint_unittest.py::Cxx11Test::testBlockedClasses - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::Cxx11Test::testBlockedFunctions - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::Cxx11Test::testBlockedHeaders - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::Cxx11Test::testExplicitMakePair - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::Cxx14Test::testBlockedHeaders - AttributeError: '...
[ 829s] FAILED cpplint_unittest.py::CleansedLinesTest::testCollapseStrings - Attribut...
[ 829s] FAILED cpplint_unittest.py::CleansedLinesTest::testInit - AttributeError: 'Cl...
[ 829s] FAILED cpplint_unittest.py::CleansedLinesTest::testInitEmpty - AttributeError...
[ 829s] FAILED cpplint_unittest.py::OrderOfIncludesTest::testClassifyInclude - Attrib...
[ 829s] FAILED cpplint_unittest.py::OrderOfIncludesTest::testRegression - AttributeEr...
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckClassDefinition
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckComplexDefinitionSeverity1
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclaration
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDeclarationWithBlockFollowing
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity0
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity1
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity2
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity3
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity4
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAboveSeverity5
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity0
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity1v0
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionAtSeverity5
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity0
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity1v0
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity2
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity3
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity4
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionBelowSeverity5
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionHugeLines
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForBadTestDoesntBreak
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForSplitLineTest
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1ForTest
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1PlusBlanks
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithEmbeddedNoLints
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity1WithNoLint
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity2
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity3
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckDefinitionSeverity4
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckEmpty
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckTrivial
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthCheckWithNamespace
[ 829s] FAILED cpplint_unittest.py::CheckForFunctionLengthsTest::testFunctionLengthNotDeterminable
[ 829s] FAILED cpplint_unittest.py::CloseExpressionTest::testCloseExpression - Attrib...
[ 829s] FAILED cpplint_unittest.py::CloseExpressionTest::testReverseCloseExpression
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testArguments - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testClass - AttributeError: 'Ne...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testClassAccess - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testDecoratedClass - AttributeE...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testEmpty - AttributeError: 'Ne...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testInlineAssembly - AttributeE...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testInnerClass - AttributeError...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testNamespace - AttributeError:...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testPreprocessor - AttributeErr...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testStruct - AttributeError: 'N...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testTemplate - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testTemplateDefaultArg - Attrib...
[ 829s] FAILED cpplint_unittest.py::NestingStateTest::testTemplateInnerClass - Attrib...
[ 829s] FAILED cpplint_unittest.py::QuietTest::testNonQuietWithErrors - AttributeErro...
[ 829s] FAILED cpplint_unittest.py::QuietTest::testNonQuietWithoutErrors - AttributeE...
[ 829s] FAILED cpplint_unittest.py::QuietTest::testQuietWithErrors - AttributeError: ...
[ 829s] FAILED cpplint_unittest.py::QuietTest::testQuietWithoutErrors - AttributeErro...
[ 829s] ================== 184 failed, 24 passed in 444.76s (0:07:24) ==================
[ 830s] error: Bad exit status from /var/tmp/rpm-tmp.HZm3D6 (%check)
[ 830s]
[ 830s] RPM build errors:
[ 830s] Bad exit status from /var/tmp/rpm-tmp.HZm3D6 (%check)
[ 830s] ### VM INTERACTION START ###
[ 830s] mount: /: mount point is busy.
[ 830s] dmesg(1) may have more information after failed mount system call.
[ 830s] Warning: 'remount -o ro /' failed. Triple Syncing..
[ 830s] [ 825.566508][ T1] sysrq: Power Off
[ 830s] ### VM INTERACTION END ###
[ 830s]
[ 830s] i03-ch2d failed "build python-cpplint.spec" at Fri Aug 22 23:06:17 UTC 2025.
[ 830s]