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