* Package: dev-python/pyspnego-0.5.3 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox @@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; This ebuild was merged at the following commit: https://github.com/gentoo-mirror/gentoo/commit/af1ca87e8ee60ba07a6eddf619dc9a3d6c34975d (Mon Aug 15 04:46:54 UTC 2022) @@@@@ END @@@@@ ################## # emerge --info: # ################## Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r8, 5.10.52-gentoo-dist x86_64) ================================================================= System uname: Linux-5.10.52-gentoo-dist-x86_64-AMD_EPYC_7543_32-Core_Processor-with-glibc2.35 KiB Mem: 16392216 total, 6911020 free KiB Swap: 4194268 total, 3169580 free Timestamp of repository gentoo: Mon, 15 Aug 2022 02:46:57 +0000 sh bash 5.1_p16-r1 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1-r3::gentoo dev-lang/python: 3.10.5::gentoo dev-lang/rust: 1.62.1::gentoo dev-util/cmake: 3.22.4::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/llvm: 14.0.6-r2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* MIT" AR="x86_64-pc-linux-gnu-ar" AS="x86_64-pc-linux-gnu-as" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CPP="x86_64-pc-linux-gnu-gcc -E" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" DISTDIR="/var/tmp/portage/dev-python/pyspnego-0.5.3/distdir" EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y --quiet-fail y -1" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -g -ggdb -frecord-gcc-switches -march=native" GCOV="x86_64-pc-linux-gnu-gcov" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LD="x86_64-pc-linux-gnu-ld" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" LINGUAS="en en_GB" MAKEOPTS="-j16" NM="x86_64-pc-linux-gnu-nm" PKGDIR="/root/tbci/binpkg" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RANLIB="x86_64-pc-linux-gnu-ranlib" SHELL="/bin/bash" USE="X acl amd64 bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 jumbo-build libglvnd libtirpc multilib ncurses nls nptl openmp openssl pam pcre readline seccomp split-usr ssl test unicode xattr zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" PYTHON_TARGETS="python3_10" USERLAND="GNU" Unset: ADDR2LINE, ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GPROF, INSTALL_MASK, LC_ALL, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ############################## # emerge history (qlop -mv): # ############################## 2022-08-15T07:00:14 >>> acct-group/docker-0-r1 2022-08-15T07:00:21 >>> dev-lang/go-bootstrap-1.16.6 2022-08-15T07:00:53 >>> dev-lang/go-1.18.5 2022-08-15T07:02:10 >>> sys-process/tini-0.19.0-r1 2022-08-15T07:02:18 >>> dev-go/go-md2man-2.0.0 2022-08-15T07:02:25 >>> app-containers/docker-proxy-0.8.0_p20220601 2022-08-15T07:02:33 >>> app-containers/docker-cli-20.10.17 2022-08-15T07:03:16 >>> app-containers/runc-1.1.3 2022-08-15T07:03:31 >>> app-containers/containerd-1.6.8 2022-08-15T07:04:33 >>> app-containers/docker-20.10.17 2022-08-15T07:05:02 >>> app-containers/docker-cli-20.10.17 2022-08-15T07:05:47 >>> app-containers/docker-proxy-0.8.0_p20220601 2022-08-15T07:05:54 >>> app-containers/runc-1.1.3 2022-08-15T07:06:10 >>> app-containers/containerd-1.6.8 2022-08-15T07:07:11 >>> app-containers/docker-20.10.17 2022-08-15T07:07:46 >>> acct-group/ngircd-0-r1 2022-08-15T07:07:52 >>> acct-user/ngircd-0-r1 2022-08-15T07:07:59 >>> net-irc/ngircd-26.1-r5 2022-08-15T07:08:20 >>> net-irc/ngircd-26.1-r5 2022-08-15T07:08:46 >>> app-text/scdoc-1.11.2-r1 2022-08-15T07:08:55 >>> app-text/scdoc-1.11.2-r1 2022-08-15T07:09:08 >>> app-arch/xar-1.8.0.0.487.100.1 2022-08-15T07:09:23 >>> app-arch/xar-1.8.0.0.487.100.1 2022-08-15T07:09:45 >>> app-eselect/eselect-vi-1.2 2022-08-15T07:09:56 >>> dev-libs/libsodium-1.0.18_p20210617 2022-08-15T07:10:23 >>> app-editors/vim-core-9.0.0099 2022-08-15T07:10:48 >>> app-editors/vim-9.0.0099 2022-08-15T07:11:25 >>> app-vim/gentoo-syntax-2 2022-08-15T07:11:34 >>> app-editors/gvim-9.0.0099 2022-08-15T07:12:12 >>> app-editors/vim-core-9.0.0099 2022-08-15T07:12:38 >>> app-editors/gvim-9.0.0099 2022-08-15T07:13:16 >>> app-editors/vim-9.0.0099 2022-08-15T07:13:59 >>> acct-group/epmd-0-r1 2022-08-15T07:14:05 >>> acct-user/epmd-0-r1 2022-08-15T07:14:12 >>> dev-lang/erlang-25.0.2 2022-08-15T07:17:28 >>> dev-lang/erlang-25.0.2 2022-08-15T07:21:04 >>> dev-python/sqlalchemy-1.4.39 2022-08-15T07:21:16 >>> dev-python/python-editor-1.0.4-r1 2022-08-15T07:21:24 >>> dev-python/python-dateutil-2.8.2-r1 2022-08-15T07:21:33 >>> dev-python/iniconfig-1.1.1-r1 2022-08-15T07:21:42 >>> dev-python/pluggy-1.0.0-r2 2022-08-15T07:21:51 >>> dev-python/py-1.11.0-r1 2022-08-15T07:22:00 >>> dev-python/zope-interface-5.4.0-r2 2022-08-15T07:22:09 >>> dev-python/attrs-21.4.0-r1 2022-08-15T07:22:18 >>> dev-python/pytest-7.1.2 2022-08-15T07:22:27 >>> dev-python/alembic-1.8.1 2022-08-15T07:22:49 >>> dev-python/alembic-1.8.1 2022-08-15T07:23:18 >>> dev-python/click-8.1.3 2022-08-15T07:23:27 >>> dev-python/flaky-3.7.0-r2 2022-08-15T07:23:36 >>> dev-python/unittest-mixins-1.6-r2 2022-08-15T07:23:45 >>> dev-python/execnet-1.9.0-r1 2022-08-15T07:23:55 >>> dev-python/psutil-5.9.1 2022-08-15T07:24:04 >>> dev-python/pytest-forked-1.4.0-r1 2022-08-15T07:24:14 >>> dev-python/sortedcontainers-2.4.0-r1 2022-08-15T07:24:24 >>> dev-python/mypy_extensions-0.4.3-r1 2022-08-15T07:24:32 >>> dev-python/editables-0.3 2022-08-15T07:24:41 >>> dev-python/flit_scm-1.7.0 2022-08-15T07:24:49 >>> dev-python/hatchling-1.5.0 2022-08-15T07:24:58 >>> dev-python/pytest-xdist-2.5.0-r1 2022-08-15T07:25:07 >>> dev-python/exceptiongroup-1.0.0_rc8 2022-08-15T07:25:16 >>> dev-python/hatch-vcs-0.2.0 2022-08-15T07:25:25 >>> dev-python/platformdirs-2.5.2 2022-08-15T07:25:33 >>> dev-python/black-22.6.0 2022-08-15T07:25:43 >>> dev-python/hypothesis-6.49.1 2022-08-15T07:25:53 >>> dev-python/coverage-6.4.3 2022-08-15T07:27:07 >>> dev-python/coverage-6.4.3 2022-08-15T07:28:28 >>> dev-python/pyasn1-0.4.8-r2 2022-08-15T07:28:38 >>> dev-python/pyrsistent-0.18.1-r1 2022-08-15T07:28:47 >>> dev-python/cachetools-5.2.0 2022-08-15T07:28:55 >>> dev-python/lark-1.1.2 2022-08-15T07:29:03 >>> dev-python/tomlkit-0.11.1 2022-08-15T07:29:13 >>> dev-python/fqdn-1.5.1-r2 2022-08-15T07:29:22 >>> dev-python/jsonpointer-2.3 2022-08-15T07:29:31 >>> dev-python/uri_template-1.2.0-r1 2022-08-15T07:29:40 >>> dev-python/webcolors-1.12 2022-08-15T07:29:49 >>> dev-python/regex-2022.7.9 2022-08-15T07:30:05 >>> dev-python/strict-rfc3339-0.7-r2 2022-08-15T07:30:13 >>> dev-python/arrow-1.2.2 2022-08-15T07:30:23 >>> dev-python/rfc3987-1.3.8-r2 2022-08-15T07:30:31 >>> dev-python/pyasn1-modules-0.2.8-r2 2022-08-15T07:30:40 >>> dev-python/isoduration-20.11.0-r1 2022-08-15T07:30:50 >>> dev-python/rfc3339-validator-0.1.4-r1 2022-08-15T07:31:00 >>> dev-python/rfc3986-validator-0.1.1-r1 2022-08-15T07:31:09 >>> dev-python/jsonschema-4.7.2 2022-08-15T07:31:18 >>> dev-python/poetry-core-1.0.8 2022-08-15T07:31:28 >>> dev-python/rsa-4.8-r2 2022-08-15T07:31:36 >>> dev-python/google-auth-2.9.1 2022-08-15T07:31:47 >>> dev-python/google-auth-2.9.1 2022-08-15T07:32:03 >>> dev-python/pytz-2022.1 2022-08-15T07:32:12 >>> dev-python/icalendar-4.1.0 2022-08-15T07:32:25 >>> dev-python/icalendar-4.1.0 2022-08-15T07:32:42 >>> dev-libs/libtommath-1.2.0-r2 2022-08-15T07:32:59 >>> dev-python/olefile-0.46-r2 2022-08-15T07:33:08 >>> dev-python/ply-3.11-r2 2022-08-15T07:33:16 >>> dev-python/pillow-9.2.0 2022-08-15T07:33:41 >>> dev-libs/libtomcrypt-1.18.2-r4 2022-08-15T07:33:55 >>> dev-python/pycparser-2.21-r1 2022-08-15T07:34:05 >>> dev-python/cffi-1.15.1 2022-08-15T07:34:18 >>> virtual/python-cffi-1 2022-08-15T07:34:24 >>> dev-python/pycryptodome-3.15.0 2022-08-15T07:34:40 >>> dev-python/PyPDF2-2.8.1 2022-08-15T07:34:58 >>> dev-python/PyPDF2-2.8.1 2022-08-15T07:35:22 >>> dev-python/pytest-mock-3.8.2 2022-08-15T07:35:31 >>> dev-python/ruamel-yaml-clib-0.2.6-r2 2022-08-15T07:35:47 >>> dev-python/decorator-5.1.1-r1 2022-08-15T07:35:57 >>> dev-python/semantic_version-2.10.0 2022-08-15T07:36:06 >>> sys-apps/keyutils-1.6.3 2022-08-15T07:36:14 >>> dev-libs/libev-4.33 2022-08-15T07:36:32 >>> dev-python/ruamel-yaml-0.17.21-r2 2022-08-15T07:36:42 >>> dev-python/setuptools-rust-1.4.1 2022-08-15T07:36:51 >>> dev-libs/libverto-0.3.1-r1 2022-08-15T07:37:09 >>> dev-python/cryptography-37.0.4 2022-08-15T07:37:53 >>> app-crypt/mit-krb5-1.19.2-r4 2022-08-15T07:40:08 >>> virtual/krb5-0-r1 2022-08-15T07:40:14 >>> dev-python/gssapi-1.7.3-r1 2022-08-15T07:40:31 >>> dev-python/krb5-0.3.0-r1 ####################################### # installed packages (qlist -ICvUSS): # ####################################### acct-group/audio-0-r1:0 acct-group/cdrom-0-r1:0 acct-group/dialout-0-r1:0 acct-group/disk-0-r1:0 acct-group/docker-0-r1:0 acct-group/epmd-0-r1:0 acct-group/input-0-r1:0 acct-group/kmem-0-r1:0 acct-group/kvm-0-r1:0 acct-group/lp-0-r1:0 acct-group/mail-0-r1:0 acct-group/man-0-r1:0 acct-group/messagebus-0-r1:0 acct-group/ngircd-0-r1:0 acct-group/polkitd-0-r1:0 acct-group/portage-0:0 acct-group/render-0-r1:0 acct-group/sgx-0:0 acct-group/sshd-0-r1:0 acct-group/tape-0-r1:0 acct-group/tty-0-r1:0 acct-group/video-0-r1:0 acct-user/epmd-0-r1:0 acct-user/mail-0-r1:0 acct-user/man-1-r1:0 acct-user/messagebus-0-r1:0 acct-user/ngircd-0-r1:0 acct-user/polkitd-0-r1:0 acct-user/portage-0:0 acct-user/postmaster-0-r1:0 acct-user/sshd-0-r1:0 app-accessibility/at-spi2-atk-2.38.0:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test -test app-accessibility/at-spi2-core-2.44.1:2 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gtk-doc introspection -test app-admin/eselect-1.4.20:0 -doc -emacs -vim-syntax app-admin/perl-cleaner-2.30:0 app-arch/brotli-1.0.9-r3:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -python -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -static-libs -test app-arch/bzip2-1.0.8-r1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 split-usr -static static-libs -verify-sig app-arch/gzip-1.12:0 -pic -static -verify-sig app-arch/libarchive-3.6.1:0/13 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -blake2 bzip2 e2fsprogs -expat iconv -lz4 lzma -lzo -nettle -static-libs -verify-sig xattr -zstd app-arch/snappy-1.1.9-r1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test app-arch/tar-1.34:0 acl -minimal nls -selinux -verify-sig xattr app-arch/unzip-6.0_p26:0 bzip2 -natspec unicode app-arch/xar-1.8.0.0.487.100.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 app-arch/xz-utils-5.2.5-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 extra-filters nls split-usr -static-libs -verify-sig app-arch/zstd-1.5.2:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -lz4 -static-libs threads app-containers/containerd-1.6.8:0 -apparmor -btrfs cri -device-mapper -hardened seccomp -selinux -test app-containers/docker-20.10.17:0 -apparmor -aufs -btrfs cli container-init -device-mapper -hardened -overlay seccomp -selinux app-containers/docker-cli-20.10.17:0 -hardened -selinux app-containers/docker-proxy-0.8.0_p20220601:0 app-containers/runc-1.1.3:0 -apparmor -hardened kmem seccomp -selinux -test app-crypt/gnupg-2.2.35-r1:0 bzip2 -doc -ldap nls readline -selinux smartcard ssl -test -tofu -tools -usb -user-socket -verify-sig -wks-server app-crypt/gpgme-1.17.1-r1:1/11.6.15 -common-lisp cxx -python python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -qt5 -static-libs -test -verify-sig app-crypt/libb2-0.98.1-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -native-cflags openmp -static-libs app-crypt/libmd-1.0.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 app-crypt/mit-krb5-1.19.2-r4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_x86_aes -doc keyutils -lmdb nls -openldap pkinit -selinux -test threads -xinetd app-crypt/p11-kit-0.23.22:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asn1 -debug libffi -systemd trust app-crypt/pinentry-1.2.0:0 -caps -efl -emacs -gnome-keyring -gtk ncurses -qt5 app-crypt/rhash-1.4.2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug nls ssl -static-libs app-dicts/myspell-en-20210601-r2:0 l10n_en -l10n_en-AU -l10n_en-CA l10n_en-GB -l10n_en-US -l10n_en-ZA app-editors/gvim-9.0.0099:0 acl -aqua crypt -cscope -debug -lua lua_single_target_lua5-1 -lua_single_target_lua5-3 -lua_single_target_lua5-4 -lua_single_target_luajit -motif -netbeans nls -perl -python python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 -racket -ruby -selinux -session -sound -tcl app-editors/nano-6.3:0 -debug -justify -magic -minimal ncurses nls spell split-usr -static unicode app-editors/vim-9.0.0099:0 X acl crypt -cscope -debug -gpm -lua lua_single_target_lua5-1 -lua_single_target_lua5-3 -lua_single_target_lua5-4 -lua_single_target_luajit -minimal nls -perl -python python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 -racket -ruby -selinux -sound -tcl -terminal -vim-pager app-editors/vim-core-9.0.0099:0 acl -minimal nls app-eselect/eselect-fontconfig-20220403:0 app-eselect/eselect-iptables-20220320:0 app-eselect/eselect-java-0.5.0:0 app-eselect/eselect-lib-bin-symlink-0.1.1-r1:0 app-eselect/eselect-php-0.9.8:0 -apache2 -fpm app-eselect/eselect-pinentry-0.7.2:0 app-eselect/eselect-ruby-20191222:0 app-eselect/eselect-rust-20210703:0 app-eselect/eselect-vi-1.2:0 app-misc/c_rehash-1.7-r1:0 app-misc/ca-certificates-20210119.3.66:0 -cacert app-misc/delay-1.6-r3:0 app-misc/editor-wrapper-4-r1:0 app-misc/pax-utils-1.3.4:0 -caps -debug -python python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 seccomp app-misc/tmux-3.3a:0 -debug -selinux -systemd -utempter -vim-syntax app-portage/eix-0.36.3:0 -debug -doc nls -sqlite app-portage/elt-patches-20211104:0 app-portage/gemato-16.2:0 gpg -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test -tools app-portage/gentoolkit-0.5.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test app-portage/nattka-0.3.1:0 -depgraph-order -doc python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test app-portage/portage-utils-0.93.3:0 nls openmp qmanifest qtegrity -static app-portage/repoman-3.0.3-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 app-shells/bash-5.1_p16-r1:0 -afs -bashlogger -examples -mem-scramble net nls -plugins readline -verify-sig app-shells/push-3.4:0 app-shells/quoter-4.2:0 app-text/build-docbook-catalog-2.3-r1:0 app-text/docbook-xml-dtd-4.5-r2:4.5 app-text/docbook-xml-dtd-4.4-r3:4.4 app-text/docbook-xml-dtd-4.3-r2:4.3 app-text/docbook-xml-dtd-4.2-r3:4.2 app-text/docbook-xml-dtd-4.1.2-r7:4.1.2 app-text/docbook-xsl-stylesheets-1.79.1-r3:0 -ruby app-text/hunspell-1.7.0-r2:0/1.7 -l10n_af -l10n_bg -l10n_ca -l10n_cs -l10n_cy -l10n_da -l10n_de -l10n_de-1901 -l10n_el l10n_en -l10n_eo -l10n_es -l10n_et -l10n_fo -l10n_fr -l10n_ga -l10n_gl -l10n_he -l10n_hr -l10n_hu -l10n_ia -l10n_id -l10n_is -l10n_it -l10n_kk -l10n_km -l10n_ku -l10n_lt -l10n_lv -l10n_mi -l10n_mk -l10n_ms -l10n_nb -l10n_nl -l10n_nn -l10n_pl -l10n_pt -l10n_pt-BR -l10n_ro -l10n_ru -l10n_sk -l10n_sl -l10n_sq -l10n_sv -l10n_sw -l10n_tn -l10n_uk -l10n_zu ncurses nls readline -static-libs app-text/iso-codes-4.10.0:0 app-text/manpager-1:0 app-text/opensp-1.5.2-r7:0 -doc nls -static-libs -test app-text/po4a-0.66:0 -test -test app-text/scdoc-1.11.2-r1:0 app-text/sgml-common-0.6.3-r7:0 app-text/wgetpaste-2.30_p20210222-r2:0 ssl app-text/xmlto-0.0.28-r8:0 -latex text app-vim/gentoo-syntax-2:0 -ignore-glep31 dev-db/sqlite-3.39.2:3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc -icu readline -secure-delete -static-libs -tcl -test -tools dev-go/go-md2man-2.0.0:0 dev-java/java-config-2.3.1:2 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-java/openjdk-bin-17.0.3_p7:17 -alsa -cups gentoo-vm -headless-awt -selinux -source dev-lang/duktape-2.7.0-r1:0/2.7.0 dev-lang/erlang-25.0.2:0/25.0.2 -doc -emacs -java -java kpoll -odbc -sctp ssl -systemd -tk -wxwidgets dev-lang/go-1.18.5:0/1.18.5 cpu_flags_x86_sse2 dev-lang/go-bootstrap-1.16.6:0 -big-endian dev-lang/nasm-2.15.05:0 -doc dev-lang/orc-0.4.31:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gtk-doc -static-libs -test dev-lang/perl-5.34.1-r3:0/5.34 -berkdb -debug -doc gdbm -ithreads -minimal -quadmath dev-lang/php-8.1.8:8.1 acl -apache2 -apparmor -argon2 -bcmath -berkdb bzip2 -calendar -cdb -cgi -cjk cli -coverage ctype -curl -debug -embed -enchant -exif -ffi fileinfo filter -firebird flatfile -fpm -ftp -gd gdbm -gmp iconv -imap -inifile -intl -iodbc ipv6 jit -kerberos -ldap -ldap-sasl -libedit -lmdb -mhash -mssql -mysql -mysqli nls -oci8-instant-client -odbc opcache -pcntl -pdo phar -phpdbg posix -postgres -qdbm readline -selinux session -session-mm -sharedmem simplexml -snmp -soap -sockets -sodium -spell -sqlite ssl -systemd -sysvipc -test -threads -tidy tokenizer -tokyocabinet -truetype unicode -webp xml -xmlreader -xmlwriter -xpm -xslt -zip zlib dev-lang/python-3.10.5:3.10 -bluetooth -build -examples gdbm -hardened -libedit -lto ncurses -pgo readline sqlite ssl -test -tk -verify-sig -wininst xml dev-lang/python-exec-2.4.9:2 native-symlinks python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test dev-lang/python-exec-conf-2.4.6:2 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-lang/ruby-2.7.6:2.7 -berkdb -debug -doc -examples gdbm ipv6 -jemalloc -jit rdoc -rubytests -socks5 ssl -static-libs -systemtap -tk -xemacs dev-lang/rust-1.62.1:stable/1.62 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -clippy cpu_flags_x86_sse2 -debug -dist -doc -llvm_targets_AArch64 -llvm_targets_AMDGPU -llvm_targets_ARM -llvm_targets_AVR -llvm_targets_BPF -llvm_targets_Hexagon -llvm_targets_Lanai -llvm_targets_MSP430 -llvm_targets_Mips -llvm_targets_NVPTX -llvm_targets_PowerPC -llvm_targets_RISCV -llvm_targets_Sparc -llvm_targets_SystemZ -llvm_targets_WebAssembly llvm_targets_X86 -llvm_targets_XCore -miri -nightly -parallel-compiler -profiler -rls -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm dev-lang/tcl-8.6.12:0/8.6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug threads dev-lang/vala-0.56.1:0.56 -test -valadoc dev-lang/yasm-1.3.0-r1:0 nls dev-libs/atk-2.38.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gtk-doc introspection dev-libs/boehm-gc-8.0.6:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cxx large -static-libs threads dev-libs/boost-1.79.0:0/1.79.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 -context -debug -doc -icu -lzma -mpi nls -numpy -python python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -tools zlib -zstd dev-libs/double-conversion-3.2.0:0/3 -test dev-libs/elfutils-0.187:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 -lzma nls -static-libs -test -threads utils -valgrind -verify-sig -zstd dev-libs/expat-2.4.8:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -examples -static-libs unicode dev-libs/fribidi-1.0.12:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test dev-libs/glib-2.72.3:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 dbus -debug elf -fam -gtk-doc mime -selinux -static-libs -sysprof -systemtap -test -utils xattr dev-libs/gmp-6.2.1-r2:0/10.4 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm cxx -doc -pic -static-libs dev-libs/gobject-introspection-1.72.0:0 -doctool -gtk-doc python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 -test dev-libs/gobject-introspection-common-1.72.0:0 dev-libs/hyphen-2.8.8-r1:0 -static-libs dev-libs/icu-71.1-r1:0/71.1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc -examples -static-libs -test -verify-sig dev-libs/jsoncpp-1.9.5:0/25 -doc -test dev-libs/libassuan-2.5.5:0 dev-libs/libatomic_ops-7.6.12:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 dev-libs/libbsd-0.11.6:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -verify-sig dev-libs/libev-4.33:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs dev-libs/libevdev-1.12.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test dev-libs/libevent-2.1.12:0/2.1-7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 clock-gettime -debug -malloc-replacement ssl -static-libs -test threads -verbose-debug dev-libs/libffi-3.4.2-r1:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -exec-static-trampoline -experimental-loong -pax-kernel -static-libs -test dev-libs/libgcrypt-1.9.4-r1:0/20 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -cpu_flags_arm_aes -cpu_flags_arm_neon -cpu_flags_arm_sha1 -cpu_flags_arm_sha2 -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx2 -cpu_flags_ppc_vsx3 -cpu_flags_x86_aes -cpu_flags_x86_avx -cpu_flags_x86_avx2 -cpu_flags_x86_padlock -cpu_flags_x86_sha -cpu_flags_x86_sse4_1 -doc -static-libs -verify-sig dev-libs/libgpg-error-1.45:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -common-lisp nls -static-libs -test dev-libs/libinput-1.21.0-r1:0/10 -doc -input_devices_wacom -test dev-libs/libksba-1.6.0:0 -static-libs dev-libs/libltdl-2.4.7:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs dev-libs/libpcre-8.45-r1:3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 cxx jit -libedit -pcre16 -pcre32 readline split-usr -static-libs unicode zlib dev-libs/libpcre2-10.40:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 jit -libedit pcre16 -pcre32 readline split-usr -static-libs unicode -verify-sig zlib dev-libs/libpipeline-1.5.6:0 -test dev-libs/libsodium-1.0.18_p20210617:0/23 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -cpu_flags_x86_aes -cpu_flags_x86_sse4_1 -minimal -static-libs urandom -verify-sig dev-libs/libtasn1-4.18.0:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -test -valgrind dev-libs/libtomcrypt-1.18.2-r4:0/1 gmp libtommath -tomsfastmath dev-libs/libtommath-1.2.0-r2:0 -doc -examples -static-libs dev-libs/libunistring-0.9.10-r1:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs dev-libs/libuv-1.44.1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 dev-libs/libverto-0.3.1-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -glib libev -libevent -static-libs -tevent threads dev-libs/libxml2-2.9.14-r1:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -examples icu -lzma python python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 readline -static-libs -test dev-libs/libxslt-1.1.35:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 crypt -debug -examples -static-libs dev-libs/libyaml-0.2.5:0 -doc -static-libs -test dev-libs/lzo-2.10:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -examples split-usr -static-libs dev-libs/mpc-1.2.1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs dev-libs/mpfr-4.1.0_p13-r1:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs dev-libs/nettle-3.7.3:0/8-6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -cpu_flags_arm_neon -cpu_flags_x86_aes -cpu_flags_x86_sha -doc gmp -static-libs -test dev-libs/npth-1.6-r1:0 -test dev-libs/nspr-4.34:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug dev-libs/nss-3.68.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cacert -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx -utils dev-libs/oniguruma-6.9.8:0/5 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -crnl-as-line-terminator -static-libs dev-libs/openssl-1.1.1q:0/1.1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm cpu_flags_x86_sse2 -rfc3779 -sctp -sslv3 -static-libs -test -tls-compression -tls-heartbeat -vanilla -verify-sig -verify-sig -weak-ssl-ciphers dev-libs/popt-1.18:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls -static-libs dev-libs/re2-0.2021.11.01:0/9 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -icu dev-libs/tree-sitter-0.20.6:0 dev-libs/tree-sitter-bash-0.19.0:0 dev-libs/vala-common-0.56.1:0 dev-perl/Devel-CheckLib-1.140.0:0 -test dev-perl/Encode-Locale-1.50.0-r1:0 -test dev-perl/File-BaseDir-0.90.0:0 -test dev-perl/File-DesktopEntry-0.220.0-r1:0 -test dev-perl/File-Listing-6.140.0:0 -test dev-perl/File-MimeInfo-0.300.0:0 -test dev-perl/HTML-Parser-3.760.0:0 -test dev-perl/HTML-Tagset-3.200.0-r2:0 dev-perl/HTTP-Cookies-6.100.0:0 -test dev-perl/HTTP-Date-6.50.0:0 dev-perl/HTTP-Message-6.330.0:0 -test -test dev-perl/HTTP-Negotiate-6.10.0-r2:0 -test dev-perl/IO-HTML-1.4.0:0 -test dev-perl/IO-Socket-INET6-2.720.0-r2:0 -test dev-perl/IO-Socket-SSL-2.72.0:0 -examples -idn -test dev-perl/IPC-System-Simple-1.300.0:0 -test dev-perl/libwww-perl-6.600.0-r1:0 ssl -test dev-perl/Locale-gettext-1.70.0-r1:0 -test dev-perl/LWP-MediaTypes-6.40.0:0 -test dev-perl/LWP-Protocol-https-6.100.0:0 -test dev-perl/MIME-Charset-1.12.2-r1:0 -l10n_ja -l10n_zh -test dev-perl/Module-Build-0.423.100:0 -test dev-perl/Mozilla-CA-20999999-r1:0 -test dev-perl/Net-HTTP-6.210.0:0 -minimal -test dev-perl/Net-SSLeay-1.900.0:0 -examples -examples -minimal -test dev-perl/Pod-Parser-1.630.0-r1:0 -test dev-perl/SGMLSpm-1.1-r2:0 -test dev-perl/Socket6-0.290.0:0 -test dev-perl/TermReadKey-2.380.0:0 -examples -test dev-perl/Text-CharWidth-0.40.0-r2:0 -test dev-perl/Text-WrapI18N-0.60.0-r2:0 -test dev-perl/TimeDate-2.330.0-r1:0 -test dev-perl/Try-Tiny-0.310.0:0 -minimal -test dev-perl/Unicode-LineBreak-2019.1.0:0 dev-perl/URI-5.100.0:0 -test dev-perl/WWW-RobotRules-6.20.0-r2:0 -test dev-perl/XML-Parser-2.460.0-r2:0 dev-perl/YAML-Tiny-1.730.0-r1:0 -minimal -test dev-python/alembic-1.8.1:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 test dev-python/appdirs-1.4.4-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/arrow-1.2.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/attrs-21.4.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/black-22.6.0:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/cachetools-5.2.0:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/certifi-3021.3.16-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/cffi-1.15.1:0/1.15.1 -doc python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/chardet-5.0.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/charset_normalizer-2.1.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/click-8.1.3:0 -doc -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/coverage-6.4.3:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 test dev-python/cryptography-37.0.4:0 -debug -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/cython-0.29.30:0 -doc -emacs -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/decorator-5.1.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/docutils-0.19:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/editables-0.3:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/exceptiongroup-1.0.0_rc8:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/execnet-1.9.0-r1:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/flaky-3.7.0-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/flit_core-3.7.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/flit_scm-1.7.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/fqdn-1.5.1-r2:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/google-auth-2.9.1:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/gpep517-8:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/gssapi-1.7.3-r1:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/hatch-vcs-0.2.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/hatchling-1.5.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/hypothesis-6.49.1:0 cli -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/icalendar-4.1.0:0 -doc python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 test dev-python/idna-3.3-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/iniconfig-1.1.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/installer-0.5.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/isoduration-20.11.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/jaraco-context-4.1.1-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/jaraco-functools-3.5.0-r2:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/jaraco-text-3.8.0:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/jinja-3.1.2:0 -doc -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/jsonpointer-2.3:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/jsonschema-4.7.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/krb5-0.3.0-r1:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/lark-1.1.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/lazy-object-proxy-1.7.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/lxml-4.9.1:0 -doc -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test threads dev-python/mako-1.2.1:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/markupsafe-2.1.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/more-itertools-8.13.0:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/mypy_extensions-0.4.3-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/nspektr-0.4.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/olefile-0.46-r2:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/ordered-set-4.1.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/packaging-21.3-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pathspec-0.9.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pillow-9.2.0:0 -examples -imagequant jpeg -jpeg2k -lcms -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test -test -tiff -tk -truetype -webp -xcb zlib dev-python/platformdirs-2.5.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pluggy-1.0.0-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/ply-3.11-r2:0/3.11 -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/poetry-core-1.0.8:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/psutil-5.9.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/py-1.11.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pyasn1-0.4.8-r2:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pyasn1-modules-0.2.8-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pycparser-2.21-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pycryptodome-3.15.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/pygments-2.12.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pyparsing-3.0.9:0 -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/PyPDF2-2.8.1:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 test dev-python/pyrsistent-0.18.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/PySocks-1.7.1-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/pytest-7.1.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pytest-forked-1.4.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pytest-mock-3.8.2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/pytest-xdist-2.5.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/python-dateutil-2.8.2-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/python-editor-1.0.4-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 dev-python/pytz-2022.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/pyyaml-6.0-r1:0 -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/regex-2022.7.9:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/requests-2.28.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -socks5 -test dev-python/rfc3339-validator-0.1.4-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/rfc3986-validator-0.1.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/rfc3987-1.3.8-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/rsa-4.8-r2:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/ruamel-yaml-0.17.21-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/ruamel-yaml-clib-0.2.6-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/semantic_version-2.10.0:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/setuptools-63.2.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/setuptools-rust-1.4.1:0 -debug -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/setuptools_scm-7.0.5:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/six-1.16.0-r1:0 -doc -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/snakeoil-0.9.10:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/sortedcontainers-2.4.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/sqlalchemy-1.4.39:0 -examples -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 sqlite -test -test dev-python/strict-rfc3339-0.7-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/tomli-2.0.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/tomlkit-0.11.1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/tree-sitter-0.20.0-r1:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/typing-extensions-4.3.0:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/unittest-mixins-1.6-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/uri_template-1.2.0-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 dev-python/urllib3-1.26.10:0 -brotli -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/webcolors-1.12:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/wheel-0.37.1-r1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-python/zope-interface-5.4.0-r2:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-qt/qtcore-5.15.5-r2:5/5.15.5 -debug -icu -old-kernel -systemd -test dev-qt/qtdeclarative-5.15.5:5/5.15 -debug -gles2-only jit -localstorage -test -vulkan widgets dev-qt/qtgui-5.15.5-r1:5/5.15.5 X -accessibility -dbus -debug -egl -eglfs -evdev gif -gles2-only -ibus -jpeg libinput -linuxfb png -test -tslib -tuio udev -vnc -vulkan -wayland dev-qt/qtnetwork-5.15.5:5/5.15 -connman -debug -gssapi -libproxy -networkmanager -sctp ssl -test dev-qt/qtprintsupport-5.15.5-r1:5/5.15 -cups -debug -gles2-only -test -test dev-qt/qttest-5.15.5:5/5.15 -debug -test -test dev-qt/qtwebchannel-5.15.5:5/5.15 -debug qml -test dev-qt/qtwebengine-5.15.5_p20220618:5/5.15 -alsa -bindist -debug -designer -geolocation jumbo-build -kerberos -pulseaudio -screencast system-ffmpeg system-icu -test -widgets dev-qt/qtwidgets-5.15.5-r1:5/5.15 X -dbus -debug -gles2-only -gtk png -test dev-ruby/bundler-2.1.4:2 doc -doc -ruby_targets_ruby26 ruby_targets_ruby27 -test -test -test dev-ruby/did_you_mean-1.4.0:2.6 -ruby_targets_ruby26 ruby_targets_ruby27 -test -test dev-ruby/json-2.5.1-r1:2 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test dev-ruby/kpeg-1.1.0-r1:1 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test -test dev-ruby/minitest-5.14.4:5 -doc -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test -test dev-ruby/net-telnet-0.2.0-r1:1 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -ruby_targets_ruby31 -test -test -test dev-ruby/power_assert-1.1.7:0 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -test -test dev-ruby/racc-1.4.16-r1:0 -doc -doc -ruby_targets_ruby26 ruby_targets_ruby27 -test -test -test -test dev-ruby/rake-13.0.3-r1:0 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test dev-ruby/rdoc-6.3.2:0 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test dev-ruby/rubygems-3.1.6:0 -ruby_targets_ruby26 ruby_targets_ruby27 -server -test dev-ruby/test-unit-3.3.9:2 -doc -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test -test -test dev-ruby/webrick-1.7.0:0 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -test -test -test dev-ruby/xmlrpc-0.3.2-r1:0 -doc -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 -ruby_targets_ruby31 -test -test -test dev-util/boost-build-1.79.0:0 -examples dev-util/cmake-3.22.4:0 -doc -emacs ncurses -qt5 -test -test dev-util/colm-0.14.7:0 -doc dev-util/desktop-file-utils-0.26-r2:0 -emacs dev-util/gdbus-codegen-2.72.3:0 python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 dev-util/glib-utils-2.72.3:0 python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 dev-util/gn-0.1943:0 -vim-syntax dev-util/gperf-3.1:0 dev-util/gtk-doc-am-1.33.2:0 dev-util/gtk-update-icon-cache-3.24.31:0 dev-util/intltool-0.51.0-r3:0 dev-util/meson-0.62.2:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -test dev-util/meson-format-array-0:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 dev-util/ninja-1.11.0:0 -doc -emacs -test -vim-syntax dev-util/pkgcheck-0.10.11:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test dev-util/pkgconf-1.8.0-r1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test dev-util/ragel-7.0.4:0 -doc dev-util/re2c-2.1.1-r1:0 -debug dev-vcs/git-2.35.1:0 blksha1 -cgi curl -cvs -doc -gnome-keyring gpg -highlight iconv -mediawiki -mediawiki-experimental nls pcre -perforce -perl -ppcsha1 python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 -selinux -subversion -test threads -tk webdav -xinetd gnome-base/dconf-0.40.0:0 -gtk-doc -test gnome-base/gsettings-desktop-schemas-42.0:0 introspection gnome-base/librsvg-2.54.4:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gtk-doc introspection vala gui-libs/display-manager-init-1.0-r4:0 mail-mta/msmtp-1.8.20:0 -daemon -doc filecaps -gnome-keyring -idn mta nls -sasl ssl -vim-syntax media-fonts/encodings-1.0.6:0 media-fonts/font-util-1.3.3:0 media-fonts/liberation-fonts-2.1.3:0 X -X -fontforge media-gfx/graphite2-1.3.14_p20210810-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -perl -test media-libs/alsa-lib-1.2.7.2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -alisp -debug -doc -python python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 thread-safety media-libs/alsa-topology-conf-1.2.5.1:0 media-libs/alsa-ucm-conf-1.2.7.2:0 media-libs/dav1d-1.0.0:0/6 10bit 8bit -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -test -xxhash media-libs/flac-1.3.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx cpu_flags_x86_sse cxx -debug -ogg -static-libs media-libs/fontconfig-2.14.0-r1:1.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test media-libs/freetype-2.12.1:2 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 adobe-cff -brotli bzip2 cleartype-hinting -debug -doc -fontforge harfbuzz -infinality png -static-libs -svg -utils media-libs/graphene-1.10.8:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon cpu_flags_x86_sse2 -doc introspection -test media-libs/gst-plugins-bad-1.20.2:1.0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 egl -gles2 -gtk introspection nls opengl orc -test -test -vnc -wayland media-libs/gst-plugins-base-1.20.2:1.0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -alsa egl -gbm -gles2 introspection -ivorbis nls ogg opengl orc pango -test -test -theora vorbis -wayland media-libs/gstreamer-1.20.2:1.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 caps introspection nls orc -test -test -unwind media-libs/harfbuzz-4.4.1:0/4.0.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 cairo -debug -doc -experimental glib graphite icu introspection -test truetype media-libs/lcms-2.13.1:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -jpeg -static-libs -test threads -tiff zlib media-libs/libepoxy-1.5.10-r1:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 egl -test -test media-libs/libglvnd-1.4.0:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test media-libs/libjpeg-turbo-2.1.3:0/0.2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon -java -java -static-libs media-libs/libogg-1.3.5:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs media-libs/libpng-1.6.37-r2:0/16 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -apng -cpu_flags_arm_neon cpu_flags_x86_sse -static-libs media-libs/libvorbis-1.3.7:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -test media-libs/libvpx-1.11.0:0/7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_ppc_vsx3 -doc highbitdepth -postproc -static-libs -test threads media-libs/libwebp-1.2.2:0/7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon cpu_flags_x86_sse2 -cpu_flags_x86_sse4_1 -gif jpeg -opengl png -static-libs -swap-16bit-csp -tiff media-libs/mesa-22.1.3:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 cpu_flags_x86_sse2 -d3d9 -debug -gles1 gles2 llvm -lm-sensors -opencl -osmesa -selinux -test -unwind -vaapi -valgrind -vdpau -video_cards_freedreno video_cards_intel -video_cards_lima video_cards_nouveau -video_cards_panfrost -video_cards_r300 -video_cards_r600 video_cards_radeon video_cards_radeonsi -video_cards_v3d -video_cards_vc4 -video_cards_virgl -video_cards_vivante -video_cards_vmware -vulkan -vulkan-overlay -wayland -xa -xvmc -zink zstd media-libs/openh264-2.2.0:0/6.1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon -cpu_flags_x86_avx2 plugin -utils media-libs/openjpeg-2.5.0-r2:2/7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test media-libs/opus-1.3.1-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon cpu_flags_x86_sse -custom-modes -doc -static-libs media-libs/tiff-4.4.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 cxx -jbig -jpeg -lzma -static-libs -test -verify-sig -webp zlib -zstd media-libs/woff2-1.0.2-r5:0 media-plugins/gst-plugins-opus-1.20.2:1.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test media-video/ffmpeg-4.4.2:0/56.58.58 X -X -X -X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -alsa -amf -amr -amr -amrenc -appkit -bluray -bs2b bzip2 -cdio -chromaprint -chromium -codec2 -cpu_flags_arm_neon -cpu_flags_arm_thumb -cpu_flags_arm_thumb2 -cpu_flags_arm_v6 -cpu_flags_arm_v8 -cpu_flags_arm_vfp -cpu_flags_arm_vfpv3 -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx -cpu_flags_ppc_vsx2 -cpu_flags_x86_3dnow -cpu_flags_x86_3dnowext -cpu_flags_x86_aes -cpu_flags_x86_avx -cpu_flags_x86_avx2 -cpu_flags_x86_fma3 -cpu_flags_x86_fma4 cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 -cpu_flags_x86_sse3 -cpu_flags_x86_sse4_1 -cpu_flags_x86_sse4_2 -cpu_flags_x86_ssse3 -cpu_flags_x86_xop -cpudetection -cuda dav1d -debug -doc encode -fdk fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp gnutls gpl -gsm -hardcoded-tables iconv -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma -mipsdspr1 -mipsdspr2 -mipsfpu -mmal -modplug -mp3 network -nvenc -openal -opencl -opengl -openh264 openssl -opus -oss -pic postproc -pulseaudio -rav1e -rubberband -samba -sdl -sdl -snappy -sndio -speex -srt -ssh -static-libs -svg -svt-av1 -test -theora threads -truetype -twolame -v4l -vaapi -vdpau -verify-sig -vidstab -vmaf -vorbis -vpx -vulkan -webp -x264 -x265 -xvid -zeromq -zimg zlib -zvbi net-dns/c-ares-1.18.1:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -test net-dns/libidn2-2.3.2:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -verify-sig net-firewall/iptables-1.8.7-r2:0/1.8.3 -conntrack -netlink -nftables -pcap split-usr -static-libs net-irc/ngircd-26.1-r5:0 -debug -gnutls -ident ipv6 -irc-plus pam ssl -strict-rfc -tcpd -test -verify-sig zlib net-libs/glib-networking-2.72.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 gnome libproxy ssl -test net-libs/gnutls-3.7.6:0/30.30 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -brotli cxx -dane -doc -examples -guile idn nls openssl -pkcs11 seccomp -sslv2 -sslv3 -static-libs -test -test-full tls-heartbeat -tools -valgrind -verify-sig zlib -zstd net-libs/libmnl-1.0.4:0/0.2.0 -examples split-usr -static-libs -verify-sig net-libs/libnsl-2.0.0-r1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs net-libs/libproxy-0.4.17-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gnome -kde -mono -networkmanager -spidermonkey -test -webkit net-libs/libpsl-0.21.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -icu idn man net-libs/libsoup-2.74.2:2.4 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -brotli -gssapi -gtk-doc introspection -samba ssl -sysprof -test vala net-libs/libtirpc-1.3.2:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 ipv6 -kerberos split-usr -static-libs net-libs/nghttp2-1.47.0:0/1.14 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cxx -debug -hpack-tools -jemalloc -static-libs -test threads -utils -xml net-libs/nodejs-18.6.0:0/18 cpu_flags_x86_sse2 -debug -doc icu inspector -lto npm -pax-kernel snapshot ssl system-icu system-ssl -systemtap -test net-libs/webkit-gtk-2.36.5-r1:4/37 X -aqua -avif egl -examples -gamepad -gles2-only -gnome-keyring gstreamer -gtk-doc introspection jpeg2k jumbo-build -lcms -libnotify seccomp -spell -systemd -test -wayland net-mail/mailbase-1.8:0 pam net-misc/curl-7.84.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -adns -alt-svc -brotli -curl_ssl_gnutls -curl_ssl_mbedtls -curl_ssl_nss curl_ssl_openssl ftp -gnutls -gopher -hsts http2 -idn imap ipv6 -kerberos -ldap -mbedtls -nghttp3 -nss openssl pop3 progress-meter -quiche -rtmp -samba smtp -ssh ssl -sslv3 -static-libs -telnet -test tftp -threads -verify-sig -zstd net-misc/iputils-20211215:0 arping -caps -clockdiff -doc filecaps -idn nls -rarpd -rdisc -static -test -tracepath net-misc/netifrc-0.7.3:0 net-misc/openssh-8.9_p1-r2:0 X -X509 -abi_mips_n32 -audit -debug -hpn -kerberos -ldns -libedit -livecd pam pie scp -sctp -security-key -selinux ssl -static -test -verify-sig -xmss net-misc/rsync-3.2.4-r3:0 acl -examples iconv ipv6 -lz4 python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 ssl -stunnel -system-zlib -verify-sig xattr -xxhash -zstd net-misc/wget-1.21.3-r1:0 -cookie-check -debug -gnutls -idn ipv6 -metalink nls -ntlm pcre ssl -static -test -uuid -verify-sig zlib perl-core/Compress-Raw-Zlib-2.202.0:0 perl-core/CPAN-2.290.0-r1:0 perl-core/Encode-3.120.0:0 perl-core/File-Temp-0.231.100:0 perl-core/Scalar-List-Utils-1.560.0:0 sec-keys/openpgp-keys-gentoo-release-20220101:0 -test sys-apps/acl-2.3.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls split-usr -static-libs sys-apps/attr-2.5.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug nls split-usr -static-libs sys-apps/baselayout-2.8:0 -build split-usr sys-apps/baselayout-java-0.1.0-r1:0 sys-apps/bubblewrap-0.6.2-r1:0 -selinux -suid sys-apps/coreutils-8.32-r1:0 acl -caps -gmp -hostname -kill -multicall nls -selinux split-usr -static -test -vanilla xattr sys-apps/dbus-1.12.22-r2:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc elogind -selinux -static-libs -systemd -test -test sys-apps/debianutils-5.7:0 installkernel -static sys-apps/diffutils-3.8:0 nls -static -verify-sig sys-apps/file-5.42:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 -lzma -python python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 -seccomp -static-libs -verify-sig zlib sys-apps/findutils-4.9.0:0 nls -selinux -static -test -verify-sig sys-apps/gawk-5.1.1-r2:0 -mpfr nls readline -verify-sig sys-apps/gentoo-functions-0.15:0 sys-apps/grep-3.7:0 nls pcre -static -verify-sig sys-apps/groff-1.22.4:0 X -examples -uchardet sys-apps/help2man-1.48.5:0 nls sys-apps/hwdata-0.358:0 sys-apps/install-xattr-0.8:0 sys-apps/iproute2-5.15.0:0 -atm -berkdb -bpf -caps -elf iptables ipv6 -libbsd -minimal -selinux sys-apps/kbd-2.4.0:0 nls pam -test sys-apps/keyutils-1.6.3:0/1.9 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 split-usr -static -static-libs -test sys-apps/kmod-29:0 -debug -doc lzma -pkcs7 -python python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -static-libs tools zlib -zstd sys-apps/less-590:0 pcre unicode sys-apps/lsb-release-1.4-r4:0 sys-apps/man-db-2.10.2-r1:0 manpager nls seccomp -selinux -static-libs zlib sys-apps/man-pages-5.13:0 -l10n_de -l10n_es -l10n_fr -l10n_it -l10n_ja -l10n_nl -l10n_pl -l10n_pt-BR -l10n_ro -l10n_ru -l10n_zh-CN sys-apps/man-pages-posix-2017a:0 sys-apps/net-tools-2.10:0 arp hostname ipv6 -nis nls -plipconfig -selinux -slattach -static sys-apps/openrc-0.44.10:0 -audit -bash -debug ncurses netifrc -newnet pam -selinux -sysv-utils unicode sys-apps/pciutils-3.8.0-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -dns kmod -static-libs udev zlib sys-apps/pkgcore-0.12.11:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -test sys-apps/portage-3.0.30-r3:0 -apidoc -build -doc -gentoo-dev ipc native-extensions -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 rsync-verify -selinux -test xattr sys-apps/sandbox-2.29:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 nnp sys-apps/sed-4.8:0 acl nls -selinux -static -verify-sig sys-apps/shadow-4.11.1:0/4 acl -audit -bcrypt -cracklib nls pam -selinux -skey split-usr -su xattr sys-apps/systemd-utils-250.7:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -boot kmod -selinux split-usr -sysusers -test tmpfiles udev sys-apps/sysvinit-3.01:0 -ibm -selinux -static sys-apps/texinfo-6.8:0 nls standalone -static sys-apps/util-linux-2.37.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -audit -build -caps cramfs -cryptsetup -fdformat hardlink -kill logger -magic ncurses nls pam -python python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 readline -rtas -selinux -slang split-usr -static-libs su suid -systemd -test -tty-helpers -udev unicode sys-apps/which-2.21:0 sys-apps/xdg-dbus-proxy-0.1.4:0 -test sys-auth/elogind-246.10-r2:0 acl -audit cgroup-hybrid -debug -doc pam policykit -selinux -test sys-auth/pambase-20220214:0 -caps -debug elogind -gnome-keyring -homed -minimal -mktemp nullok -pam_krb5 -pam_ssh passwdqc -pwhistory -pwquality -securetty -selinux sha512 -systemd -yescrypt sys-auth/passwdqc-2.0.2-r1:0 sys-auth/polkit-0.120_p20220509:0 duktape -examples -gtk introspection -kde pam -selinux -systemd -test sys-devel/autoconf-2.71-r1:2.71 -emacs sys-devel/autoconf-archive-2022.02.11:0 sys-devel/autoconf-wrapper-20220130:0 sys-devel/automake-1.16.5:1.16 -test sys-devel/automake-wrapper-11-r1:0 sys-devel/binutils-2.38-r2:2.38 -cet -default-gold -doc -emacs gold -multitarget nls -pgo plugins -static-libs -test -vanilla sys-devel/binutils-config-5.4.1:0 native-symlinks sys-devel/bison-3.8.2:0 -examples nls -static -test -verify-sig sys-devel/flex-2.6.4-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls -static -test sys-devel/gcc-11.3.0:11 -ada -cet -custom-cflags cxx -d -debug -doc -fixed-point fortran -go -graphite -hardened -jit -libssp -lto multilib nls nptl -objc -objc++ -objc-gc openmp -pch -pgo pie sanitize ssp -systemtap -test -valgrind -vanilla -vtv -zstd sys-devel/gcc-config-2.5-r1:0 cc-wrappers native-symlinks sys-devel/gdb-11.2:0 -cet -guile -lzma -multitarget nls python python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 server -source-highlight -test -vanilla -xml -xxhash sys-devel/gettext-0.21-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -cvs cxx -doc -emacs -git -java -java ncurses nls openmp -static-libs -verify-sig sys-devel/gnuconfig-20220508:0 sys-devel/libtool-2.4.7:2 -vanilla sys-devel/llvm-14.0.6-r2:14 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 binutils-plugin -debug -doc -doc -exegesis -libedit libffi llvm_targets_AArch64 llvm_targets_AMDGPU -llvm_targets_ARC llvm_targets_ARM llvm_targets_AVR llvm_targets_BPF -llvm_targets_CSKY llvm_targets_Hexagon llvm_targets_Lanai -llvm_targets_M68k llvm_targets_MSP430 llvm_targets_Mips llvm_targets_NVPTX llvm_targets_PowerPC llvm_targets_RISCV llvm_targets_Sparc llvm_targets_SystemZ llvm_targets_VE llvm_targets_WebAssembly llvm_targets_X86 llvm_targets_XCore ncurses -test -verify-sig -xar -xml -z3 sys-devel/llvm-common-14.0.6:0 -verify-sig sys-devel/llvmgold-14:0 sys-devel/m4-1.4.19:0 -examples nls -verify-sig sys-devel/make-4.3:0 -guile nls -static -verify-sig sys-devel/patch-2.7.6-r4:0 -static -test -verify-sig xattr sys-fs/e2fsprogs-1.46.5-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cron -fuse -lto nls split-usr -static-libs -test threads tools sys-fs/udev-init-scripts-35:0 sys-kernel/installkernel-gentoo-5:0 -grub sys-kernel/linux-headers-5.15-r3:0 -headers-only sys-libs/binutils-libs-2.38-r2:0/2.38 -64-bit-bfd -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cet -multitarget nls -static-libs sys-libs/gdbm-1.23:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 berkdb nls readline -static-libs -verify-sig sys-libs/glibc-2.35-r8:2.2 -audit -caps -cet clone3 -compile-locales -crypt -custom-cflags -doc -experimental-loong -gd -headers-only multiarch multilib -multilib-bootstrap -nscd -profile -selinux ssp stack-realign static-libs -suid -systemd -systemtap -test -vanilla sys-libs/libcap-2.64:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 pam split-usr -static-libs -tools sys-libs/libseccomp-2.5.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -experimental-loong -python python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 -static-libs -test sys-libs/libxcrypt-4.4.28-r1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 compat split-usr -static-libs system -test sys-libs/mtdev-1.1.6:0 sys-libs/ncurses-6.3_p20220423:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -ada cxx -debug -doc -gpm -minimal -profile split-usr stack-realign -static-libs -test tinfo -trace -verify-sig sys-libs/pam-1.5.1_p20210622-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -audit -berkdb -debug filecaps -nis -selinux split-usr sys-libs/readline-8.1_p2:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 split-usr -static-libs unicode -utils -verify-sig sys-libs/timezone-data-2021e:0 -leaps-timezone nls -zic-slim sys-libs/zlib-1.2.12-r2:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 minizip split-usr static-libs -verify-sig sys-process/procps-3.3.17-r1:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 elogind kill -modern-top ncurses nls -selinux split-usr -static-libs -systemd -test unicode sys-process/psmisc-23.4-r1:0 X ipv6 nls -selinux sys-process/tini-0.19.0-r1:0 args static virtual/acl-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs virtual/awk-1:0 virtual/dev-manager-0-r2:0 virtual/editor-0-r3:0 virtual/jdk-17:17 -headless-awt virtual/jpeg-100-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs virtual/jre-17:17 virtual/krb5-0-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 virtual/libc-1-r1:0 virtual/libcrypt-2:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs virtual/libelf-3-r1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 virtual/libiconv-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 virtual/libintl-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 virtual/libudev-232-r7:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -systemd virtual/man-0-r4:0 virtual/mta-1-r2:0 virtual/opengl-7.0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 virtual/os-headers-0-r2:0 virtual/package-manager-1:0 virtual/pager-0-r1:0 virtual/perl-Carp-1.520.0-r2:0 virtual/perl-Compress-Raw-Bzip2-2.103.0-r2:0 virtual/perl-Compress-Raw-Zlib-2.202.0:0 virtual/perl-CPAN-2.290.0:0 virtual/perl-CPAN-Meta-2.150.10-r6:0 virtual/perl-CPAN-Meta-Requirements-2.140.0-r8:0 virtual/perl-CPAN-Meta-YAML-0.18.0-r8:0 virtual/perl-Data-Dumper-2.179.0:0 virtual/perl-Digest-MD5-2.580.0-r1:0 virtual/perl-Encode-3.120.0:0 virtual/perl-Exporter-5.760.0:0 virtual/perl-ExtUtils-CBuilder-0.280.236-r1:0 virtual/perl-ExtUtils-Install-2.200.0-r1:0 virtual/perl-ExtUtils-MakeMaker-7.620.0:0 virtual/perl-ExtUtils-Manifest-1.730.0-r1:0 virtual/perl-ExtUtils-ParseXS-3.430.0:0 virtual/perl-File-Path-2.180.0-r1:0 virtual/perl-File-Spec-3.800.0:0 virtual/perl-File-Temp-0.231.100:0 virtual/perl-Getopt-Long-2.520.0-r1:0 virtual/perl-IO-1.460.0:0 virtual/perl-IO-Compress-2.103.0-r1:0 virtual/perl-IO-Socket-IP-0.410.0-r1:0 virtual/perl-JSON-PP-4.60.0:0 virtual/perl-libnet-3.130.0:0 ssl virtual/perl-MIME-Base64-3.160.0-r1:0 virtual/perl-Module-Metadata-1.0.37-r2:0 virtual/perl-parent-0.238.0-r2:0 virtual/perl-Parse-CPAN-Meta-2.150.10-r6:0 virtual/perl-Perl-OSType-1.10.0-r6:0 virtual/perl-podlators-4.140.0-r3:0 virtual/perl-Scalar-List-Utils-1.560.0:0 virtual/perl-Test-Harness-3.430.0:0 virtual/perl-Text-ParseWords-3.300.0-r8:0 virtual/perl-Time-Local-1.300.0-r1:0 virtual/perl-version-0.992.800:0 virtual/perl-XSLoader-0.300.0-r4:0 virtual/pkgconfig-2-r1:0 virtual/python-cffi-1:0 -python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 virtual/ruby-ssl-11:0 -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 virtual/rubygems-16:0 -ruby_targets_ruby26 ruby_targets_ruby27 -ruby_targets_ruby30 virtual/rust-1.62.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -rustfmt virtual/service-manager-1:0 virtual/ssh-0-r1:0 -minimal virtual/tmpfiles-0-r3:0 virtual/ttf-fonts-1-r1:0 virtual/udev-217-r5:0 virtual/w3m-1:0 virtual/yacc-0:0 www-client/chromium-103.0.5060.53:0/stable X -component-build -cpu_flags_arm_neon -cups -custom-cflags -debug -gtk4 hangouts -headless js-type-check -kerberos -l10n_af -l10n_am -l10n_ar -l10n_bg -l10n_bn -l10n_ca -l10n_cs -l10n_da -l10n_de -l10n_el l10n_en-GB -l10n_es -l10n_es-419 -l10n_et -l10n_fa -l10n_fi -l10n_fil -l10n_fr -l10n_gu -l10n_he -l10n_hi -l10n_hr -l10n_hu -l10n_id -l10n_it -l10n_ja -l10n_kn -l10n_ko -l10n_lt -l10n_lv -l10n_ml -l10n_mr -l10n_ms -l10n_nb -l10n_nl -l10n_pl -l10n_pt-BR -l10n_pt-PT -l10n_ro -l10n_ru -l10n_sk -l10n_sl -l10n_sr -l10n_sv -l10n_sw -l10n_ta -l10n_te -l10n_th -l10n_tr -l10n_uk -l10n_ur -l10n_vi -l10n_zh-CN -l10n_zh-TW -libcxx -lto official pic proprietary-codecs -pulseaudio -screencast -selinux suid -system-ffmpeg system-harfbuzz system-icu system-png -vaapi -wayland -widevine www-client/pybugz-0.13-r2:0 python_targets_python3_10 -python_targets_python3_8 -python_targets_python3_9 www-client/w3m-0.5.3_p20210102:0 X -fbcon -gdk-pixbuf -gpm -imlib -l10n_de -l10n_ja -lynxkeymap nls -nntp ssl unicode -xface x11-apps/iceauth-1.0.9:0 x11-apps/mkfontscale-1.2.2:0 x11-apps/rgb-1.0.6-r1:0 x11-apps/xauth-1.1.2:0 x11-apps/xinit-1.4.1-r1:0 -twm x11-apps/xkbcomp-1.4.5:0 x11-apps/xprop-1.2.5:0 x11-apps/xrdb-1.2.1:0 x11-apps/xset-1.2.4-r1:0 x11-base/xcb-proto-1.15.2:0 python_targets_python3_10 -python_targets_python3_11 -python_targets_python3_8 -python_targets_python3_9 x11-base/xorg-drivers-21.1:0 -input_devices_elographics -input_devices_evdev -input_devices_joystick input_devices_libinput -input_devices_synaptics -input_devices_vmmouse -input_devices_void -input_devices_wacom video_cards_amdgpu -video_cards_ast video_cards_dummy video_cards_fbdev -video_cards_freedreno -video_cards_geode -video_cards_glint -video_cards_i915 video_cards_intel -video_cards_mga video_cards_nouveau -video_cards_nv -video_cards_nvidia -video_cards_omap -video_cards_qxl -video_cards_r128 video_cards_radeon video_cards_radeonsi -video_cards_siliconmotion -video_cards_tegra -video_cards_vc4 video_cards_vesa -video_cards_via -video_cards_virtualbox -video_cards_vmware x11-base/xorg-proto-2022.1:0 -test x11-base/xorg-server-21.1.4:0/21.1.4 -debug elogind -minimal -selinux -suid -systemd -test udev -unwind -xcsecurity -xephyr -xnest xorg xvfb x11-drivers/xf86-input-libinput-1.2.1:0 x11-drivers/xf86-video-amdgpu-22.0.0:0 -udev x11-drivers/xf86-video-ati-19.1.0-r1:0 -udev x11-drivers/xf86-video-dummy-0.4.0:0 x11-drivers/xf86-video-fbdev-0.5.0-r1:0 x11-drivers/xf86-video-nouveau-1.0.17:0 x11-drivers/xf86-video-vesa-2.5.0:0 x11-libs/cairo-1.16.0-r5:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -aqua -debug -gles2-only glib -opengl -static-libs svg -utils -valgrind x11-libs/gdk-pixbuf-2.42.8:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -gtk-doc introspection -jpeg -tiff x11-libs/gtk+-3.24.34:3 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -aqua -broadway -colord -cups -examples -gtk-doc introspection -sysprof -test -test -vim-syntax -wayland -xinerama x11-libs/libdrm-2.4.112:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -valgrind video_cards_amdgpu -video_cards_exynos -video_cards_freedreno video_cards_intel video_cards_nouveau -video_cards_omap video_cards_radeon -video_cards_tegra -video_cards_vc4 -video_cards_vivante -video_cards_vmware x11-libs/libfontenc-1.1.4:0 x11-libs/libICE-1.0.10-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 ipv6 x11-libs/libpciaccess-0.16-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 zlib x11-libs/libSM-1.2.3-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc ipv6 uuid x11-libs/libX11-1.8.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test x11-libs/libXau-1.0.9-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXaw-1.0.14:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -deprecated -doc x11-libs/libxcb-1.15-r1:0/1.12 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -doc -selinux -test xkb x11-libs/libXcomposite-0.4.5:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXcursor-1.2.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libxcvt-0.1.2:0 x11-libs/libXdamage-1.1.5:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/libXdmcp-1.1.3-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXext-1.3.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXfixes-6.0.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXfont2-2.0.5:0 bzip2 -doc ipv6 -truetype x11-libs/libXft-2.3.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXi-1.8:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libxkbcommon-1.4.1:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test -test -tools -wayland x11-libs/libxkbfile-1.1.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/libXmu-1.1.3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc ipv6 x11-libs/libXpm-3.5.13:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/libXrandr-1.5.2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXrender-0.9.10-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/libXScrnSaver-1.2.3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libxshmfence-1.3-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/libXt-1.2.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test x11-libs/libXtst-1.2.3-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXv-1.0.11-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/libXxf86vm-1.1.4-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc x11-libs/pango-1.50.8:0 X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug introspection -sysprof -test x11-libs/pixman-0.40.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_iwmmxt -cpu_flags_arm_iwmmxt2 -cpu_flags_arm_neon -cpu_flags_ppc_altivec cpu_flags_x86_mmxext cpu_flags_x86_sse2 -cpu_flags_x86_ssse3 -loongson2f -static-libs -test x11-libs/xcb-util-0.4.0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xcb-util-cursor-0.1.3-r4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xcb-util-image-0.4.0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xcb-util-keysyms-0.4.0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xcb-util-renderutil-0.3.9-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xcb-util-wm-0.4.1-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 x11-libs/xtrans-1.4.0:0 -doc x11-misc/compose-tables-1.8.1:0 x11-misc/shared-mime-info-2.2:0 -test x11-misc/util-macros-1.19.3:0 x11-misc/xbitmaps-1.1.2-r1:0 x11-misc/xdg-utils-1.1.3_p20200220-r5:0 -dbus -doc -gnome x11-misc/xkeyboard-config-2.36:0 x11-themes/adwaita-icon-theme-42.0_p2:0 -branding x11-themes/hicolor-icon-theme-0.17:0 ####################### # build.log # #######################>>> Unpacking source... >>> Unpacking pyspnego-0.5.3.tar.gz to /var/tmp/portage/dev-python/pyspnego-0.5.3/work >>> Source unpacked in /var/tmp/portage/dev-python/pyspnego-0.5.3/work >>> Preparing source in /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3 ... * Build system packages: * dev-python/gpep517 : 8 * dev-python/installer : 0.5.1-r1 * dev-python/setuptools : 63.2.0 * dev-python/setuptools_scm : 7.0.5 * dev-python/wheel : 0.37.1-r1 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3 ... * python3_10: running distutils-r1_run_phase distutils-r1_python_compile python3.10 setup.py build_ext -j 16 running build_ext * Building the wheel for pyspnego-0.5.3 via setuptools.build_meta gpep517 build-wheel --backend setuptools.build_meta --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/wheel running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/spnego copying src/spnego/auth.py -> build/lib/spnego copying src/spnego/_credssp_structures.py -> build/lib/spnego copying src/spnego/__init__.py -> build/lib/spnego copying src/spnego/_credential.py -> build/lib/spnego copying src/spnego/exceptions.py -> build/lib/spnego copying src/spnego/_negotiate.py -> build/lib/spnego copying src/spnego/_ntlm.py -> build/lib/spnego copying src/spnego/gss.py -> build/lib/spnego copying src/spnego/_kerberos.py -> build/lib/spnego copying src/spnego/_context.py -> build/lib/spnego copying src/spnego/_asn1.py -> build/lib/spnego copying src/spnego/_sspi.py -> build/lib/spnego copying src/spnego/__main__.py -> build/lib/spnego copying src/spnego/sspi.py -> build/lib/spnego copying src/spnego/_credssp.py -> build/lib/spnego copying src/spnego/_gss.py -> build/lib/spnego copying src/spnego/channel_bindings.py -> build/lib/spnego copying src/spnego/_version.py -> build/lib/spnego copying src/spnego/tls.py -> build/lib/spnego copying src/spnego/_spnego.py -> build/lib/spnego copying src/spnego/iov.py -> build/lib/spnego copying src/spnego/_text.py -> build/lib/spnego copying src/spnego/negotiate.py -> build/lib/spnego copying src/spnego/ntlm.py -> build/lib/spnego creating build/lib/spnego/_sspi_raw copying src/spnego/_sspi_raw/__init__.py -> build/lib/spnego/_sspi_raw creating build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/security.py -> build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/__init__.py -> build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/md4.py -> build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/crypto.py -> build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/des.py -> build/lib/spnego/_ntlm_raw copying src/spnego/_ntlm_raw/messages.py -> build/lib/spnego/_ntlm_raw copying src/spnego/py.typed -> build/lib/spnego copying src/spnego/_sspi_raw/sspi.pyi -> build/lib/spnego/_sspi_raw copying src/spnego/_sspi_raw/text.pyi -> build/lib/spnego/_sspi_raw warning: build_py: byte-compiling is disabled, skipping. installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/auth.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_credssp_structures.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/__init__.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_credential.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/exceptions.py -> build/bdist.linux-x86_64/wheel/spnego creating build/bdist.linux-x86_64/wheel/spnego/_sspi_raw copying build/lib/spnego/_sspi_raw/__init__.py -> build/bdist.linux-x86_64/wheel/spnego/_sspi_raw copying build/lib/spnego/_sspi_raw/sspi.pyi -> build/bdist.linux-x86_64/wheel/spnego/_sspi_raw copying build/lib/spnego/_sspi_raw/text.pyi -> build/bdist.linux-x86_64/wheel/spnego/_sspi_raw copying build/lib/spnego/_negotiate.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_ntlm.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/gss.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_kerberos.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_context.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_asn1.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_sspi.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/__main__.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/sspi.py -> build/bdist.linux-x86_64/wheel/spnego creating build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/security.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/__init__.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/md4.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/crypto.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/des.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_ntlm_raw/messages.py -> build/bdist.linux-x86_64/wheel/spnego/_ntlm_raw copying build/lib/spnego/_credssp.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_gss.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/channel_bindings.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_version.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/py.typed -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/tls.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_spnego.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/iov.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/_text.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/negotiate.py -> build/bdist.linux-x86_64/wheel/spnego copying build/lib/spnego/ntlm.py -> build/bdist.linux-x86_64/wheel/spnego warning: install_lib: byte-compiling is disabled, skipping. running install_egg_info running egg_info writing src/pyspnego.egg-info/PKG-INFO writing dependency_links to src/pyspnego.egg-info/dependency_links.txt writing entry points to src/pyspnego.egg-info/entry_points.txt writing requirements to src/pyspnego.egg-info/requires.txt writing top-level names to src/pyspnego.egg-info/top_level.txt listing git files failed - pretending there aren't any reading manifest file 'src/pyspnego.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching '.coverage' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.pre-commit-config.yaml' warning: no previously-included files matching '*.pyc' found under directory 'tests' adding license file 'LICENSE' writing manifest file 'src/pyspnego.egg-info/SOURCES.txt' Copying src/pyspnego.egg-info to build/bdist.linux-x86_64/wheel/pyspnego-0.5.3-py3.10.egg-info running install_scripts adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-x86_64/wheel/pyspnego-0.5.3.dist-info/WHEEL creating '/var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/wheel/tmpgk77009i/pyspnego-0.5.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'spnego/__init__.py' adding 'spnego/__main__.py' adding 'spnego/_asn1.py' adding 'spnego/_context.py' adding 'spnego/_credential.py' adding 'spnego/_credssp.py' adding 'spnego/_credssp_structures.py' adding 'spnego/_gss.py' adding 'spnego/_kerberos.py' adding 'spnego/_negotiate.py' adding 'spnego/_ntlm.py' adding 'spnego/_spnego.py' adding 'spnego/_sspi.py' adding 'spnego/_text.py' adding 'spnego/_version.py' adding 'spnego/auth.py' adding 'spnego/channel_bindings.py' adding 'spnego/exceptions.py' adding 'spnego/gss.py' adding 'spnego/iov.py' adding 'spnego/negotiate.py' adding 'spnego/ntlm.py' adding 'spnego/py.typed' adding 'spnego/sspi.py' adding 'spnego/tls.py' adding 'spnego/_ntlm_raw/__init__.py' adding 'spnego/_ntlm_raw/crypto.py' adding 'spnego/_ntlm_raw/des.py' adding 'spnego/_ntlm_raw/md4.py' adding 'spnego/_ntlm_raw/messages.py' adding 'spnego/_ntlm_raw/security.py' adding 'spnego/_sspi_raw/__init__.py' adding 'spnego/_sspi_raw/sspi.pyi' adding 'spnego/_sspi_raw/text.pyi' adding 'pyspnego-0.5.3.dist-info/LICENSE' adding 'pyspnego-0.5.3.dist-info/METADATA' adding 'pyspnego-0.5.3.dist-info/WHEEL' adding 'pyspnego-0.5.3.dist-info/entry_points.txt' adding 'pyspnego-0.5.3.dist-info/top_level.txt' adding 'pyspnego-0.5.3.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel * Installing pyspnego-0.5.3-py3-none-any.whl to /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/install gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/install --interpreter=/usr/bin/python3.10 --prefix=/usr /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/wheel/pyspnego-0.5.3-py3-none-any.whl >>> Source compiled. >>> Test phase: dev-python/pyspnego-0.5.3 * python3_10: running distutils-r1_run_phase python_test python3.10 -m pytest -vv -ra -l -Wdefault --color=no -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar ============================= test session starts ============================== platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0 -- /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3-python3_10/install/usr/bin/python3.10 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3/.hypothesis/examples') rootdir: /var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3, configfile: pyproject.toml, testpaths: tests plugins: flaky-3.7.0, xdist-2.5.0, forked-1.4.0, hypothesis-6.49.1, pkgcore-0.12.11, mock-3.8.2 collecting ... collected 612 items tests/test_asn1.py::test_tag_class_native_labels PASSED [ 1/612] tests/test_asn1.py::test_type_tag_number_native_labels PASSED [ 2/612] tests/test_asn1.py::test_extract_asn1_tlv[value0-TagClass.universal-TypeTagNumber.octet_string-\x00\x01] PASSED [ 3/612] tests/test_asn1.py::test_extract_asn1_tlv[\x00\x01-TagClass.universal-TypeTagNumber.octet_string-\x00\x01] PASSED [ 4/612] tests/test_asn1.py::test_extract_asn1_tlv[value2-TagClass.application-1023-\x00] PASSED [ 5/612] tests/test_asn1.py::test_extract_asn1_tlv_invalid_universal_class PASSED [ 6/612] tests/test_asn1.py::test_extract_asn1_invalid_other_class PASSED [ 7/612] tests/test_asn1.py::test_get_sequence_value PASSED [ 8/612] tests/test_asn1.py::test_get_sequence_value_raw PASSED [ 9/612] tests/test_asn1.py::test_get_sequence_value_no_tag PASSED [ 10/612] tests/test_asn1.py::test_get_sequence_value_failure_with_field_name PASSED [ 11/612] tests/test_asn1.py::test_get_sequence_value_failure_without_field_name PASSED [ 12/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00-\x04\x01\x00] PASSED [ 13/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.universal-True-TypeTagNumber.octet_string-\x00\x00-$\x02\x00\x00] PASSED [ 14/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.application-True-1024-\x00\x00-\x7f\x88\x00\x02\x00\x00] PASSED [ 15/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.application-True-1048576-\x00\x00-\x7f\xc0\x80\x00\x02\x00\x00] PASSED [ 16/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 17/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x81\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 18/612] tests/test_asn1.py::test_pack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x82\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 19/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00-\x04\x01\x00] PASSED [ 20/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.universal-True-TypeTagNumber.octet_string-\x00\x00-$\x02\x00\x00] PASSED [ 21/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.application-True-1024-\x00\x00-\x7f\x88\x00\x02\x00\x00] PASSED [ 22/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.application-True-1048576-\x00\x00-\x7f\xc0\x80\x00\x02\x00\x00] PASSED [ 23/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 24/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x81\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 25/612] tests/test_asn1.py::test_unpack_asn1_tlv[TagClass.universal-False-TypeTagNumber.octet_string-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-\x04\x82\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00] PASSED [ 26/612] tests/test_asn1.py::test_unpack_asn1_tlv_remaining_data PASSED [ 27/612] tests/test_asn1.py::test_pack_asn1_tlv_invalid_class PASSED [ 28/612] tests/test_asn1.py::test_pack_asn1_bit_string PASSED [ 29/612] tests/test_asn1.py::test_unpack_asn1_bit_string[\x03\x03\x00\x01\x01-\x01\x01] PASSED [ 30/612] tests/test_asn1.py::test_unpack_asn1_bit_string[\x03\x03\x01\x01\x01-\x01\x00] PASSED [ 31/612] tests/test_asn1.py::test_pack_asn1_general_string PASSED [ 32/612] tests/test_asn1.py::test_pack_asn1_enumerated PASSED [ 33/612] tests/test_asn1.py::test_unpack_asn1_enumerated PASSED [ 34/612] tests/test_asn1.py::test_pack_asn1_general_string_encoding PASSED [ 35/612] tests/test_asn1.py::test_unpack_asn1_general_string PASSED [ 36/612] tests/test_asn1.py::test_pack_asn1_integer[-748591-\x02\x03\xf4\x93\xd1] PASSED [ 37/612] tests/test_asn1.py::test_pack_asn1_integer[-32769-\x02\x03\xff\x7f\xff] PASSED [ 38/612] tests/test_asn1.py::test_pack_asn1_integer[-32768-\x02\x02\x80\x00] PASSED [ 39/612] tests/test_asn1.py::test_pack_asn1_integer[-32767-\x02\x02\x80\x01] PASSED [ 40/612] tests/test_asn1.py::test_pack_asn1_integer[-257-\x02\x02\xfe\xff] PASSED [ 41/612] tests/test_asn1.py::test_pack_asn1_integer[-256-\x02\x02\xff\x00] PASSED [ 42/612] tests/test_asn1.py::test_pack_asn1_integer[-255-\x02\x02\xff\x01] PASSED [ 43/612] tests/test_asn1.py::test_pack_asn1_integer[-129-\x02\x02\xff\x7f] PASSED [ 44/612] tests/test_asn1.py::test_pack_asn1_integer[-128-\x02\x01\x80] PASSED [ 45/612] tests/test_asn1.py::test_pack_asn1_integer[-127-\x02\x01\x81] PASSED [ 46/612] tests/test_asn1.py::test_pack_asn1_integer[-17-\x02\x01\xef] PASSED [ 47/612] tests/test_asn1.py::test_pack_asn1_integer[-16-\x02\x01\xf0] PASSED [ 48/612] tests/test_asn1.py::test_pack_asn1_integer[-10-\x02\x01\xf6] PASSED [ 49/612] tests/test_asn1.py::test_pack_asn1_integer[-1-\x02\x01\xff] PASSED [ 50/612] tests/test_asn1.py::test_pack_asn1_integer[0-\x02\x01\x00] PASSED [ 51/612] tests/test_asn1.py::test_pack_asn1_integer[1-\x02\x01\x01] PASSED [ 52/612] tests/test_asn1.py::test_pack_asn1_integer[10-\x02\x01\n] PASSED [ 53/612] tests/test_asn1.py::test_pack_asn1_integer[16-\x02\x01\x10] PASSED [ 54/612] tests/test_asn1.py::test_pack_asn1_integer[17-\x02\x01\x11] PASSED [ 55/612] tests/test_asn1.py::test_pack_asn1_integer[127-\x02\x01\x7f] PASSED [ 56/612] tests/test_asn1.py::test_pack_asn1_integer[128-\x02\x02\x00\x80] PASSED [ 57/612] tests/test_asn1.py::test_pack_asn1_integer[129-\x02\x02\x00\x81] PASSED [ 58/612] tests/test_asn1.py::test_pack_asn1_integer[255-\x02\x02\x00\xff] PASSED [ 59/612] tests/test_asn1.py::test_pack_asn1_integer[256-\x02\x02\x01\x00] PASSED [ 60/612] tests/test_asn1.py::test_pack_asn1_integer[257-\x02\x02\x01\x01] PASSED [ 61/612] tests/test_asn1.py::test_pack_asn1_integer[32767-\x02\x02\x7f\xff] PASSED [ 62/612] tests/test_asn1.py::test_pack_asn1_integer[32768-\x02\x03\x00\x80\x00] PASSED [ 63/612] tests/test_asn1.py::test_pack_asn1_integer[32769-\x02\x03\x00\x80\x01] PASSED [ 64/612] tests/test_asn1.py::test_pack_asn1_integer[748591-\x02\x03\x0bl/] PASSED [ 65/612] tests/test_asn1.py::test_unpack_asn1_integer[-748591-\x02\x03\xf4\x93\xd1] PASSED [ 66/612] tests/test_asn1.py::test_unpack_asn1_integer[-32769-\x02\x03\xff\x7f\xff] PASSED [ 67/612] tests/test_asn1.py::test_unpack_asn1_integer[-32768-\x02\x02\x80\x00] PASSED [ 68/612] tests/test_asn1.py::test_unpack_asn1_integer[-32767-\x02\x02\x80\x01] PASSED [ 69/612] tests/test_asn1.py::test_unpack_asn1_integer[-257-\x02\x02\xfe\xff] PASSED [ 70/612] tests/test_asn1.py::test_unpack_asn1_integer[-256-\x02\x02\xff\x00] PASSED [ 71/612] tests/test_asn1.py::test_unpack_asn1_integer[-255-\x02\x02\xff\x01] PASSED [ 72/612] tests/test_asn1.py::test_unpack_asn1_integer[-129-\x02\x02\xff\x7f] PASSED [ 73/612] tests/test_asn1.py::test_unpack_asn1_integer[-128-\x02\x01\x80] PASSED [ 74/612] tests/test_asn1.py::test_unpack_asn1_integer[-127-\x02\x01\x81] PASSED [ 75/612] tests/test_asn1.py::test_unpack_asn1_integer[-17-\x02\x01\xef] PASSED [ 76/612] tests/test_asn1.py::test_unpack_asn1_integer[-16-\x02\x01\xf0] PASSED [ 77/612] tests/test_asn1.py::test_unpack_asn1_integer[-10-\x02\x01\xf6] PASSED [ 78/612] tests/test_asn1.py::test_unpack_asn1_integer[-1-\x02\x01\xff] PASSED [ 79/612] tests/test_asn1.py::test_unpack_asn1_integer[0-\x02\x01\x00] PASSED [ 80/612] tests/test_asn1.py::test_unpack_asn1_integer[1-\x02\x01\x01] PASSED [ 81/612] tests/test_asn1.py::test_unpack_asn1_integer[10-\x02\x01\n] PASSED [ 82/612] tests/test_asn1.py::test_unpack_asn1_integer[16-\x02\x01\x10] PASSED [ 83/612] tests/test_asn1.py::test_unpack_asn1_integer[17-\x02\x01\x11] PASSED [ 84/612] tests/test_asn1.py::test_unpack_asn1_integer[127-\x02\x01\x7f] PASSED [ 85/612] tests/test_asn1.py::test_unpack_asn1_integer[128-\x02\x02\x00\x80] PASSED [ 86/612] tests/test_asn1.py::test_unpack_asn1_integer[129-\x02\x02\x00\x81] PASSED [ 87/612] tests/test_asn1.py::test_unpack_asn1_integer[255-\x02\x02\x00\xff] PASSED [ 88/612] tests/test_asn1.py::test_unpack_asn1_integer[256-\x02\x02\x01\x00] PASSED [ 89/612] tests/test_asn1.py::test_unpack_asn1_integer[257-\x02\x02\x01\x01] PASSED [ 90/612] tests/test_asn1.py::test_unpack_asn1_integer[32767-\x02\x02\x7f\xff] PASSED [ 91/612] tests/test_asn1.py::test_unpack_asn1_integer[32768-\x02\x03\x00\x80\x00] PASSED [ 92/612] tests/test_asn1.py::test_unpack_asn1_integer[32769-\x02\x03\x00\x80\x01] PASSED [ 93/612] tests/test_asn1.py::test_unpack_asn1_integer[748591-\x02\x03\x0bl/] PASSED [ 94/612] tests/test_asn1.py::test_pack_object_identifier[1.2-\x06\x01*] PASSED [ 95/612] tests/test_asn1.py::test_pack_object_identifier[1.2.3-\x06\x02*\x03] PASSED [ 96/612] tests/test_asn1.py::test_pack_object_identifier[1.2.3.1024.2-\x06\x05*\x03\x88\x00\x02] PASSED [ 97/612] tests/test_asn1.py::test_pack_object_identifier_invalid_value PASSED [ 98/612] tests/test_asn1.py::test_unpack_object_identifier[1.2-\x06\x01*] PASSED [ 99/612] tests/test_asn1.py::test_unpack_object_identifier[1.2.3-\x06\x02*\x03] PASSED [100/612] tests/test_asn1.py::test_unpack_object_identifier[1.2.3.1024.2-\x06\x05*\x03\x88\x00\x02] PASSED [101/612] tests/test_asn1.py::test_pack_asn1_sequence PASSED [102/612] tests/test_asn1.py::test_unpack_asn1_sequence PASSED [103/612] tests/test_asn1.py::test_pack_asn1_octet_string PASSED [104/612] tests/test_asn1.py::test_unpack_asn1_octet_string PASSED [105/612] tests/test_asn1.py::test_unpack_asn1_boolean[\x00-False] PASSED [106/612] tests/test_asn1.py::test_unpack_asn1_boolean[\x01-True] PASSED [107/612] tests/test_asn1.py::test_unpack_asn1_boolean[\x02-True] PASSED [108/612] tests/test_asn1.py::test_unpack_asn1_generalized_time[19700101000000Z] PASSED [109/612] tests/test_asn1.py::test_unpack_asn1_generalized_time[19700101000000.000000Z] PASSED [110/612] tests/test_asn1.py::test_unpack_asn1_generalized_time_format_err PASSED [111/612] tests/test_auth.py::test_invalid_protocol PASSED [112/612] tests/test_auth.py::test_protocol_not_supported PASSED [113/612] tests/test_auth.py::test_no_valid_credential_available_single_available_protocol PASSED [114/612] tests/test_auth.py::test_no_valid_credential_available_multiple_available_protocol PASSED [115/612] tests/test_auth.py::test_negotiate_with_kerberos SKIPPED (Cannot create Kerberos credential without k5test being installed) [116/612] tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_negotiate] ERROR [117/612] tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_gssapi-NegotiateOptions.use_negotiate] ERROR [118/612] tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_gssapi] ERROR [119/612] tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_sspi] ERROR [120/612] tests/test_auth.py::test_negotiate_with_raw_ntlm ERROR [121/612] tests/test_auth.py::test_negotiate_with_ntlm_hash ERROR [122/612] tests/test_auth.py::test_negotiate_with_ntlm_and_duplicate_response_token ERROR [123/612] tests/test_auth.py::test_ntlm_auth[None] ERROR [124/612] tests/test_auth.py::test_ntlm_auth[0] ERROR [125/612] tests/test_auth.py::test_ntlm_auth[1] ERROR [126/612] tests/test_auth.py::test_ntlm_auth[2] ERROR [127/612] tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_sspi] ERROR [128/612] tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_sspi] ERROR [129/612] tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_ntlm] ERROR [130/612] tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_ntlm] ERROR [131/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_gssapi-NegotiateOptions.use_gssapi-False] SKIPPED (Test requires NTLM to be available through GSSAPI) [132/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_gssapi-NegotiateOptions.use_gssapi-True] SKIPPED (Test requires NTLM to be available through GSSAPI) [133/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_ntlm-NegotiateOptions.use_gssapi-False] SKIPPED (Test requires NTLM to be available through GSSAPI) [134/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_ntlm-NegotiateOptions.use_gssapi-True] SKIPPED (Test requires NTLM to be available through GSSAPI) [135/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_gssapi-NegotiateOptions.use_ntlm-False] SKIPPED (Test requires NTLM to be available through GSSAPI) [136/612] tests/test_auth.py::test_gssapi_ntlm_auth[NegotiateOptions.use_gssapi-NegotiateOptions.use_ntlm-True] SKIPPED (Test requires NTLM to be available through GSSAPI) [137/612] tests/test_auth.py::test_gssapi_ntlm_auth_with_hash SKIPPED (Test requires NTLM to be available through GSSAPI) [138/612] tests/test_auth.py::test_gssapi_ntlm_lm_compat[0] SKIPPED (Test requires NTLM to be available through GSSAPI) [139/612] tests/test_auth.py::test_gssapi_ntlm_lm_compat[1] SKIPPED (Test requires NTLM to be available through GSSAPI) [140/612] tests/test_auth.py::test_gssapi_ntlm_lm_compat[2] SKIPPED (Test requires NTLM to be available through GSSAPI) [141/612] tests/test_auth.py::test_gssapi_ntlm_lm_compat[3] SKIPPED (Test requires NTLM to be available through GSSAPI) [142/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_sspi-NegotiateOptions.use_sspi-False] SKIPPED (Test requires NTLM to be available through SSPI) [143/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_sspi-NegotiateOptions.use_sspi-True] SKIPPED (Test requires NTLM to be available through SSPI) [144/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_ntlm-NegotiateOptions.use_sspi-False] SKIPPED (Test requires NTLM to be available through SSPI) [145/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_ntlm-NegotiateOptions.use_sspi-True] SKIPPED (Test requires NTLM to be available through SSPI) [146/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_sspi-NegotiateOptions.use_ntlm-False] SKIPPED (Test requires NTLM to be available through SSPI) [147/612] tests/test_auth.py::test_sspi_ntlm_auth[NegotiateOptions.use_sspi-NegotiateOptions.use_ntlm-True] SKIPPED (Test requires NTLM to be available through SSPI) [148/612] tests/test_auth.py::test_sspi_ntlm_lm_compat[1] SKIPPED (Test requires NTLM to be available through SSPI) [149/612] tests/test_auth.py::test_sspi_ntlm_lm_compat[2] SKIPPED (Test requires NTLM to be available through SSPI) [150/612] tests/test_auth.py::test_sspi_ntlm_lm_compat[3] SKIPPED (Test requires NTLM to be available through SSPI) [151/612] tests/test_auth.py::test_ntlm_with_explicit_ntlm_hash ERROR [152/612] tests/test_auth.py::test_ntlm_with_unsupported_credential PASSED [153/612] tests/test_auth.py::test_gssapi_kerberos_auth[False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [154/612] tests/test_auth.py::test_gssapi_kerberos_auth[True] SKIPPED (Cannot create Kerberos credential without k5test being installed) [155/612] tests/test_auth.py::test_gssapi_kerberos_auth_explicit_cred[False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [156/612] tests/test_auth.py::test_gssapi_kerberos_auth_explicit_cred[True] SKIPPED (Cannot create Kerberos credential without k5test being installed) [157/612] tests/test_auth.py::test_kerberos_auth_keytab[kerberos-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [158/612] tests/test_auth.py::test_kerberos_auth_keytab[kerberos-True] SKIPPED (Cannot create Kerberos credential without k5test being installed) [159/612] tests/test_auth.py::test_kerberos_auth_keytab[negotiate-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [160/612] tests/test_auth.py::test_kerberos_auth_keytab[negotiate-True] SKIPPED (Cannot create Kerberos credential without k5test being installed) [161/612] tests/test_auth.py::test_kerberos_auth_ccache[kerberos-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [162/612] tests/test_auth.py::test_kerberos_auth_ccache[kerberos-True0] SKIPPED (Cannot create Kerberos credential without k5test being installed) [163/612] tests/test_auth.py::test_kerberos_auth_ccache[negotiate-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [164/612] tests/test_auth.py::test_kerberos_auth_ccache[kerberos-True1] SKIPPED (Cannot create Kerberos credential without k5test being installed) [165/612] tests/test_auth.py::test_kerberos_auth_env_cache[kerberos-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [166/612] tests/test_auth.py::test_kerberos_auth_env_cache[kerberos-True0] SKIPPED (Cannot create Kerberos credential without k5test being installed) [167/612] tests/test_auth.py::test_kerberos_auth_env_cache[negotiate-False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [168/612] tests/test_auth.py::test_kerberos_auth_env_cache[kerberos-True1] SKIPPED (Cannot create Kerberos credential without k5test being installed) [169/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-None] ERROR [170/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-2] ERROR [171/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-True-None] ERROR [172/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-None] ERROR [173/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-5] ERROR [174/612] tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-True-None] ERROR [175/612] tests/test_auth.py::test_credssp_kerberos_creds[False] SKIPPED (Cannot create Kerberos credential without k5test being installed) [176/612] tests/test_auth.py::test_credssp_kerberos_creds[True] SKIPPED (Cannot create Kerberos credential without k5test being installed) [177/612] tests/test_auth.py::test_credssp_multiple_creds ERROR [178/612] tests/test_auth.py::test_credssp_min_protocol_failure_initiator ERROR [179/612] tests/test_auth.py::test_credssp_min_protocol_failure_acceptor ERROR [180/612] tests/test_channel_bindings.py::test_channel_bindings_pack PASSED [181/612] tests/test_channel_bindings.py::test_channel_bindings_none_pack PASSED [182/612] tests/test_channel_bindings.py::test_channel_bindings_unpack PASSED [183/612] tests/test_channel_bindings.py::test_channel_bindings_str PASSED [184/612] tests/test_channel_bindings.py::test_channel_bindings_repr PASSED [185/612] tests/test_channel_bindings.py::test_channel_bindings_eq PASSED [186/612] tests/test_context.py::test_split_username[None-None-None] PASSED [187/612] tests/test_context.py::test_split_username[username-None-username] PASSED [188/612] tests/test_context.py::test_split_username[domain\\username-domain-username] PASSED [189/612] tests/test_context.py::test_split_username[domain\\username\\part-domain-username\\part] PASSED [190/612] tests/test_context.py::test_split_username[username@domain-None-username@domain] PASSED [191/612] tests/test_context.py::test_gss_mech_common_name[1.3.6.1.4.1.311.2.2.10-ntlm] PASSED [192/612] tests/test_context.py::test_gss_mech_common_name[1.3.6.1.5.5.2-spnego] PASSED [193/612] tests/test_context.py::test_gss_mech_common_name[1.2.840.113554.1.2.2-kerberos] PASSED [194/612] tests/test_context.py::test_gss_mech_common_name[1.2.840.48018.1.2.2-kerberos] PASSED [195/612] tests/test_context.py::test_gss_mech_common_name[1.3.5.1.5.2-kerberos] PASSED [196/612] tests/test_context.py::test_gss_mech_common_name[1.3.6.1.5.2-kerberos] PASSED [197/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.4.1.311.2.2.10-False] PASSED [198/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.5.5.2-False] PASSED [199/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.2.840.113554.1.2.2-True] PASSED [200/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.2.840.48018.1.2.2-True] PASSED [201/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.3.5.1.5.2-True] PASSED [202/612] tests/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.5.2-True] PASSED [203/612] tests/test_context.py::test_gss_mech_from_oid[1.3.6.1.4.1.311.2.2.10-1.3.6.1.4.1.311.2.2.10] PASSED [204/612] tests/test_context.py::test_gss_mech_from_oid[1.3.6.1.5.5.2-1.3.6.1.5.5.2] PASSED [205/612] tests/test_context.py::test_gss_mech_from_oid[1.2.840.113554.1.2.2-1.2.840.113554.1.2.2] PASSED [206/612] tests/test_context.py::test_gss_mech_from_oid[1.2.840.48018.1.2.2-1.2.840.48018.1.2.2] PASSED [207/612] tests/test_context.py::test_gss_mech_from_oid_invalid PASSED [208/612] tests/test_credssp.py::test_pub_key_auth[\x00\x01-initiate-None] PASSED [209/612] tests/test_credssp.py::test_pub_key_auth[E\x90\xc2l\x83}\xac\xdf=\xa8\xfa\xe5x&M\x9eEHj\xfc9Q\xf2\x1e\xf3W\x06L\xd5_\xbb\xb5-initiate-\x00\x00] PASSED [210/612] tests/test_credssp.py::test_pub_key_auth[\x01\x01-accept-None] PASSED [211/612] tests/test_credssp.py::test_pub_key_auth[\xcd\xf4\xff\xeel\xb69^[i,-\xa3\x978oj\x1e\xab-:bq\x81j\x04\xc7\xa2\x91M3?-accept-\x00\x00] PASSED [212/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.3-TLS_AES_128_GCM_SHA256-17] PASSED [213/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.3-TLS_AES_256_GCM_SHA384-17] PASSED [214/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.2-ECDHE-RSA-AES128-GCM-SHA256-16] PASSED [215/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.2-RC4-MD5-16] PASSED [216/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.2-ECDH-ECDSA-3DES-SHA256-34] PASSED [217/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.2-ECDH-RSA-AES-SHA384-50] PASSED [218/612] tests/test_credssp.py::test_get_credssp_trailer_length[TLSv1.2-ECDH-RSA-AES-2] PASSED [219/612] tests/test_credssp.py::test_credssp_no_iov PASSED [220/612] tests/test_credssp.py::test_credssp_no_session_key PASSED [221/612] tests/test_credssp.py::test_credssp_fail_getting_session_key PASSED [222/612] tests/test_credssp.py::test_credssp_wrap_iov_fail PASSED [223/612] tests/test_credssp.py::test_credssp_unwrap_iov_fail PASSED [224/612] tests/test_credssp.py::test_credssp_sign_fail PASSED [225/612] tests/test_credssp.py::test_credssp_verify_fail PASSED [226/612] tests/test_credssp.py::test_credssp_wrap_no_context PASSED [227/612] tests/test_credssp.py::test_credssp_invalid_handshake ERROR [228/612] tests/test_credssp.py::test_credssp_server_without_pub_key PASSED [229/612] tests/test_credssp.py::test_credssp_invalid_client_authentication_v2[2] ERROR [230/612] tests/test_credssp.py::test_credssp_invalid_client_authentication_v2[5] ERROR [231/612] tests/test_credssp.py::test_credssp_invalid_client_authentication[3] ERROR [232/612] tests/test_credssp.py::test_credssp_invalid_client_authentication[4] ERROR [233/612] tests/test_credssp.py::test_credssp_invalid_client_authentication[6] ERROR [234/612] tests/test_credssp.py::test_credssp_no_pub_key_after_auth ERROR [235/612] tests/test_credssp.py::test_credssp_pub_key_mismatch_initiator ERROR [236/612] tests/test_credssp.py::test_credssp_pub_key_mismatch_acceptor ERROR [237/612] tests/test_credssp.py::test_credssp_no_credential ERROR [238/612] tests/test_credssp_structures.py::test_unpack_missing_text_field PASSED [239/612] tests/test_credssp_structures.py::test_ts_request_pack PASSED [240/612] tests/test_credssp_structures.py::test_ts_request_unpack PASSED [241/612] tests/test_credssp_structures.py::test_ts_credential_unknown_credential_type PASSED [242/612] tests/test_credssp_structures.py::test_ts_credential_unknown_credential_type_unpack PASSED [243/612] tests/test_credssp_structures.py::test_ts_credential_password_pack PASSED [244/612] tests/test_credssp_structures.py::test_ts_credential_password_unpack PASSED [245/612] tests/test_credssp_structures.py::test_ts_credential_smart_card_pack PASSED [246/612] tests/test_credssp_structures.py::test_ts_credential_smart_card_unpack PASSED [247/612] tests/test_credssp_structures.py::test_ts_credential_smart_card_full_pack PASSED [248/612] tests/test_credssp_structures.py::test_ts_credential_smart_card_full_unpack PASSED [249/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_multiple_pack PASSED [250/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_multiple_unpack PASSED [251/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_no_supplemental_pack PASSED [252/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_no_supplemental_unpack PASSED [253/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_empty_supplemental_pack PASSED [254/612] tests/test_credssp_structures.py::test_ts_credential_remote_guard_empty_supplemental_unpack PASSED [255/612] tests/test_credssp_structures.py::test_ts_remote_guard_pack PASSED [256/612] tests/test_credssp_structures.py::test_ts_remote_guard_unpack PASSED [257/612] tests/test_deprecation.py::test_gss_import_dep PASSED [258/612] tests/test_deprecation.py::test_negotiate_import_dep PASSED [259/612] tests/test_deprecation.py::test_ntlm_import_dep PASSED [260/612] tests/test_deprecation.py::test_sspi_import_dep PASSED [261/612] tests/test_exceptions.py::test_feature_missing_error[NegotiateOptions.negotiate_kerberos-The Python gssapi library is not installed so Kerberos cannot be negotiated.] PASSED [262/612] tests/test_exceptions.py::test_feature_missing_error[NegotiateOptions.wrapping_iov-The system is missing the GSSAPI IOV extension headers or NTLM or CredSSP is being requested, cannot utilize wrap_iov and unwrap_iov] PASSED [263/612] tests/test_exceptions.py::test_feature_missing_error[NegotiateOptions.wrapping_winrm-The system is missing the GSSAPI IOV extension headers required for WinRM encryption with Kerberos.] PASSED [264/612] tests/test_exceptions.py::test_feature_missing_error[NegotiateOptions.session_key-The protocol selected does not support getting the session key.] PASSED [265/612] tests/test_exceptions.py::test_spnego_error_no_code_fail PASSED [266/612] tests/test_exceptions.py::test_spnego_error_invalid_base_error_fail PASSED [267/612] tests/test_exceptions.py::test_spnego_error_unknown_error PASSED [268/612] tests/test_exceptions.py::test_invalid_token_error PASSED [269/612] tests/test_exceptions.py::test_invalid_token_error_with_context PASSED [270/612] tests/test_exceptions.py::test_invalid_token_from_gssapi PASSED [271/612] tests/test_exceptions.py::test_invalid_token_from_sspi SKIPPED (Need a WindowsError to test this out) [272/612] tests/test_exceptions.py::test_invalid_token_from_sspi_logon_denied SKIPPED (Need a WindowsError to test this out) [273/612] tests/test_exceptions.py::test_operation_not_available_error PASSED [274/612] tests/test_exceptions.py::test_operation_not_available_error_with_context PASSED [275/612] tests/test_exceptions.py::test_operation_not_available_from_gssapi PASSED [276/612] tests/test_exceptions.py::test_operation_not_available_from_sspi SKIPPED (Need a WindowsError to test this out) [277/612] tests/test_gss.py::test_gss_sasl_description_fail PASSED [278/612] tests/test_gss.py::test_build_iov_list SKIPPED (Cannot create Kerberos credential without k5test being installed) [279/612] tests/test_gss.py::test_build_iov_list_invalid_tuple SKIPPED (Cannot create Kerberos credential without k5test being installed) [280/612] tests/test_gss.py::test_build_iov_list_invalid_buffer_type SKIPPED (Cannot create Kerberos credential without k5test being installed) [281/612] tests/test_gss.py::test_build_iov_list_invalid_data SKIPPED (Cannot create Kerberos credential without k5test being installed) [282/612] tests/test_gss.py::test_build_iov_list_invalid_value SKIPPED (Cannot create Kerberos credential without k5test being installed) [283/612] tests/test_gss.py::test_no_gssapi_library PASSED [284/612] tests/test_gss.py::test_gssapi_no_kerberos PASSED [285/612] tests/test_gss.py::test_gssapi_no_valid_acceptor_cred PASSED [286/612] tests/test_kerberos.py::test_parse_enum_unknown PASSED [287/612] tests/test_kerberos.py::test_parse_flags_unknown PASSED [288/612] tests/test_kerberos.py::test_kerberos_ap_options_native_labels PASSED [289/612] tests/test_kerberos.py::test_kerberos_kdc_options_native_labels PASSED [290/612] tests/test_kerberos.py::test_kerberos_encryption_type_native_labels PASSED [291/612] tests/test_kerberos.py::test_kerberos_error_code_native_labels PASSED [292/612] tests/test_kerberos.py::test_kerberos_message_type_native_labels PASSED [293/612] tests/test_kerberos.py::test_kerberos_pa_data_type_native_labels PASSED [294/612] tests/test_kerberos.py::test_kerberos_principal_name_type_native_labels PASSED [295/612] tests/test_kerberos.py::test_kerberos_host_address_type_native_labels PASSED [296/612] tests/test_kerberos.py::test_unpack_unknown_krb PASSED [297/612] tests/test_kerberos.py::test_unpack_krb_as_req PASSED [298/612] tests/test_kerberos.py::test_unpack_krb_tgs_req PASSED [299/612] tests/test_kerberos.py::test_unpack_krb_as_rep PASSED [300/612] tests/test_kerberos.py::test_unpack_krb_tgs_rep PASSED [301/612] tests/test_kerberos.py::test_unpack_krb_ap_req PASSED [302/612] tests/test_kerberos.py::test_unpack_krb_ap_req_unknown_options PASSED [303/612] tests/test_kerberos.py::test_unpack_krb_ap_rep PASSED [304/612] tests/test_kerberos.py::test_unpack_krb_error PASSED [305/612] tests/test_kerberos.py::test_padata_unknown_type PASSED [306/612] tests/test_kerberos.py::test_req_body_addresses PASSED [307/612] tests/test_kerberos.py::test_req_body_ticket PASSED [308/612] tests/test_main.py::test_parse_with_hex PASSED [309/612] tests/test_main.py::test_parse_with_file PASSED [310/612] tests/test_main.py::test_parse_with_file_missing PASSED [311/612] tests/test_main.py::test_parse_from_stdin PASSED [312/612] tests/test_main.py::test_parse_from_stdin_base16 PASSED [313/612] tests/test_main.py::test_parse_from_stdin_base64 PASSED [314/612] tests/test_main.py::test_parse_output_yaml PASSED [315/612] tests/test_main.py::test_parse_output_yaml_not_installed PASSED [316/612] tests/test_main.py::test_parse_invalid_spnego_token PASSED [317/612] tests/test_main.py::test_ntlm_negotiate PASSED [318/612] tests/test_main.py::test_ntlm_challenge PASSED [319/612] tests/test_main.py::test_ntlm_authenticate PASSED [320/612] tests/test_main.py::test_ntlm_authenticate_with_secret PASSED [321/612] tests/test_main.py::test_ntlm_authenticate_ntlmv1 PASSED [322/612] tests/test_main.py::test_ntlm_authenticate_lmv2 PASSED [323/612] tests/test_main.py::test_nltm_session_key_no_sign_seal PASSED [324/612] tests/test_main.py::test_ntlm_without_version PASSED [325/612] tests/test_main.py::test_ntlm_no_target_info PASSED [326/612] tests/test_main.py::test_ntlm_av_single_host PASSED [327/612] tests/test_main.py::test_krb_as_rep PASSED [328/612] tests/test_main.py::test_krb_as_req PASSED [329/612] tests/test_main.py::test_krb_error PASSED [330/612] tests/test_main.py::test_krb_tgs_rep PASSED [331/612] tests/test_main.py::test_krb_tgs_req PASSED [332/612] tests/test_main.py::test_krb_ap_req_in_initial_context_token PASSED [333/612] tests/test_main.py::test_neg_token_init PASSED [334/612] tests/test_main.py::test_neg_token_init2 PASSED [335/612] tests/test_main.py::test_neg_token_resp PASSED [336/612] tests/test_negotiate.py::test_token_rejected ERROR [337/612] tests/test_negotiate.py::test_token_invalid_input ERROR [338/612] tests/test_negotiate.py::test_token_no_common_mechs ERROR [339/612] tests/test_negotiate.py::test_token_acceptor_first ERROR [340/612] tests/test_negotiate.py::test_iov_available_sspi SKIPPED (Requires SSPI library) [341/612] tests/test_negotiate.py::test_iov_available_gssapi PASSED [342/612] tests/test_ntlm.py::test_get_credential_file_no_env_var PASSED [343/612] tests/test_ntlm.py::test_get_credential_file_env_var_missing_file PASSED [344/612] tests/test_ntlm.py::test_get_credential_file PASSED [345/612] tests/test_ntlm.py::test_get_credential_from_file[domain:Username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-input0] PASSED [346/612] tests/test_ntlm.py::test_get_credential_from_file[domain:Username:password\ndomain:other:pass2-Username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-None] PASSED [347/612] tests/test_ntlm.py::test_get_credential_from_file[fake\ndomain:username:password-username-domain-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-input2] PASSED [348/612] tests/test_ntlm.py::test_get_credential_from_file[:username@DOMAIN.COM:password-username@DOMAIN.COM-None-E52CAC67419A9A224A3B108F3FA6CB6D-8846F7EAEE8FB117AD06BDD830B7586C-input3] PASSED [349/612] tests/test_ntlm.py::test_get_credential_from_file[testuser:1000:278623D830DABE161104594F8C2EF12B:C3C6F4FD8A02A6C1268F1A8074B6E7E0:[U]:LCT-1589398321-testuser-None-278623D830DABE161104594F8C2EF12B-C3C6F4FD8A02A6C1268F1A8074B6E7E0-input4] PASSED [350/612] tests/test_ntlm.py::test_get_credential_from_file[TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321-testuser-testdom-4588C64B89437893AAD3B435B51404EE-65202355FA01AEF26B89B19E00F52679-input5] PASSED [351/612] tests/test_ntlm.py::test_get_credential_from_file[TESTDOM\\testuser:1000:4588C64B89437893AAD3B435B51404EE:65202355FA01AEF26B89B19E00F52679:[U]:LCT-1589398321-testuser-testdom-4588C64B89437893AAD3B435B51404EE-65202355FA01AEF26B89B19E00F52679-input6] PASSED [352/612] tests/test_ntlm.py::test_get_credential_from_file[testuser@TESTDOM.COM:1000:00000000000000000000000000000000:8ADB9B997580D69E69CAA2BBB68F4697:[U]:LCT-1589398321-testuser@testdom.com-None-00000000000000000000000000000000-8ADB9B997580D69E69CAA2BBB68F4697-input7] PASSED [353/612] tests/test_ntlm.py::test_get_credential_from_file_no_matches PASSED [354/612] tests/test_ntlm.py::test_invalid_lm_compat_level[-1] PASSED [355/612] tests/test_ntlm.py::test_invalid_lm_compat_level[6] PASSED [356/612] tests/test_ntlm.py::test_context_no_store[initiate] PASSED [357/612] tests/test_ntlm.py::test_context_no_store[accept] PASSED [358/612] tests/test_ntlm.py::test_iov_available PASSED [359/612] tests/test_ntlm.py::test_ntlm_invalid_usage PASSED [360/612] tests/test_ntlm.py::test_ntlm_invalid_protocol PASSED [361/612] tests/test_ntlm.py::test_ntlm_iov_not_available PASSED [362/612] tests/test_ntlm.py::test_ntlm_wrap_qop_invalid PASSED [363/612] tests/test_ntlm.py::test_ntlm_wrap_no_sign_or_seal PASSED [364/612] tests/test_ntlm.py::test_ntlm_wrap_iov_fail PASSED [365/612] tests/test_ntlm.py::test_ntlm_unwrap_iov_fail PASSED [366/612] tests/test_ntlm.py::test_ntlm_sign_qop_invalid PASSED [367/612] tests/test_ntlm.py::test_ntlm_no_encoding_flags PASSED [368/612] tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-False] ERROR [369/612] tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-True] ERROR [370/612] tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_gssapi-True] ERROR [371/612] tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_sspi-True] ERROR [372/612] tests/test_ntlm.py::test_ntlm_bad_mic ERROR [373/612] tests/test_ntlm.py::test_ntlm_workstation_override[None-LOCALHOST] ERROR [374/612] tests/test_ntlm.py::test_ntlm_workstation_override[-None] ERROR [375/612] tests/test_ntlm.py::test_ntlm_workstation_override[custom-custom] ERROR [376/612] tests/test_ntlm.py::test_ntlm_custom_time[True-0] ERROR [377/612] tests/test_ntlm.py::test_ntlm_custom_time[False-1] ERROR [378/612] tests/test_ntlm.py::test_ntlm_no_key_exch ERROR [379/612] tests/test_ntlm.py::test_ntlm_lm_request ERROR [380/612] tests/test_ntlm.py::test_ntlm_no_lm_allowed ERROR [381/612] tests/test_ntlm.py::test_ntlm_nt_v1_request ERROR [382/612] tests/test_ntlm.py::test_ntlm_no_nt_v1_allowed ERROR [383/612] tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_ntlm] ERROR [384/612] tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_gssapi] ERROR [385/612] tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_sspi] ERROR [386/612] tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_ntlm] ERROR [387/612] tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_gssapi] ERROR [388/612] tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_sspi] ERROR [389/612] tests/test_ntlm.py::test_ntlm_anon_response ERROR [390/612] tests/test_spnego.py::test_pack_mech_type_list[1.2.840.113554.1.2.2-0\x0b\x06\t*\x86H\x86\xf7\x12\x01\x02\x02] PASSED [391/612] tests/test_spnego.py::test_pack_mech_type_list[value1-0\x17\x06\t*\x86H\x86\xf7\x12\x01\x02\x02\x06\n+\x06\x01\x04\x01\x827\x02\x02\n] PASSED [392/612] tests/test_spnego.py::test_spnego_context_flags_native_labels PASSED [393/612] tests/test_spnego.py::test_spnego_neg_state_native_labels PASSED [394/612] tests/test_spnego.py::test_initial_context_token_unknown_token PASSED [395/612] tests/test_spnego.py::test_initial_context_token_unknown_mech PASSED [396/612] tests/test_spnego.py::test_unpack_initial_context_token_unknown_mech PASSED [397/612] tests/test_spnego.py::test_unpack_initial_context_token_invalid_application_tag PASSED [398/612] tests/test_spnego.py::test_unpack_initial_context_token_invalid_context_specific_tag PASSED [399/612] tests/test_spnego.py::test_unpack_neg_token_init PASSED [400/612] tests/test_spnego.py::test_unpack_neg_token_init2 PASSED [401/612] tests/test_spnego.py::test_unpack_neg_token_resp PASSED [402/612] tests/test_spnego.py::test_unpack_krb_ap_req PASSED [403/612] tests/test_spnego.py::test_unpack_krb_ap_rep PASSED [404/612] tests/test_spnego.py::test_unpack_ntlm PASSED [405/612] tests/test_spnego.py::test_pack_neg_token_init PASSED [406/612] tests/test_spnego.py::test_pack_neg_token_init2 PASSED [407/612] tests/test_spnego.py::test_pack_neg_token_resp PASSED [408/612] tests/test_sspi.py::test_build_iov_list SKIPPED (Requires SSPI library) [409/612] tests/test_sspi.py::test_build_iov_list_fail_auto_alloc SKIPPED (Requires SSPI library) [410/612] tests/test_sspi.py::test_no_sspi_library PASSED [411/612] tests/test_sspi.py::test_sspi_invalid_qop SKIPPED (Requires SSPI library) [412/612] tests/test_sspi.py::test_sspi_wrap_no_encryption SKIPPED (Requires SSPI library) [413/612] tests/test_sspi.py::test_sspi_no_valid_cred SKIPPED (Requires SSPI library) [414/612] tests/test_text.py::test_to_bytes_from_bytes PASSED [415/612] tests/test_text.py::test_to_bytes_from_text[cafe-cafe] PASSED [416/612] tests/test_text.py::test_to_bytes_from_text[caf\xe9-caf\xc3\xa9] PASSED [417/612] tests/test_text.py::test_to_bytes_from_text[U\u0308se\u04dc-U\xcc\x88se\xd3\x9c] PASSED [418/612] tests/test_text.py::test_to_bytes_encoding PASSED [419/612] tests/test_text.py::test_to_bytes_errors PASSED [420/612] tests/test_text.py::test_to_bytes_nonstr PASSED [421/612] tests/test_text.py::test_to_bytes_nonstr_default PASSED [422/612] tests/test_text.py::test_to_bytes_nonstr_repr PASSED [423/612] tests/test_text.py::test_to_bytes_nonstr_unicode_error PASSED [424/612] tests/test_text.py::test_to_bytes_nonstr_passthru PASSED [425/612] tests/test_text.py::test_to_bytes_nonstr_empty PASSED [426/612] tests/test_text.py::test_to_bytes_nonstr_invalid PASSED [427/612] tests/test_text.py::test_to_text_from_text PASSED [428/612] tests/test_text.py::test_to_text_from_bytes[cafe-cafe] PASSED [429/612] tests/test_text.py::test_to_text_from_bytes[caf\xc3\xa9-caf\xe9] PASSED [430/612] tests/test_text.py::test_to_text_from_bytes[U\xcc\x88se\xd3\x9c-U\u0308se\u04dc] PASSED [431/612] tests/test_text.py::test_to_text_encoding PASSED [432/612] tests/test_text.py::test_to_text_errors PASSED [433/612] tests/test_text.py::test_to_text_nonstr PASSED [434/612] tests/test_text.py::test_to_text_nonstr_unicode PASSED [435/612] tests/test_text.py::test_to_text_nonstr_default PASSED [436/612] tests/test_text.py::test_to_text_nonstr_repr PASSED [437/612] tests/test_text.py::test_to_text_nonstr_unicode_error PASSED [438/612] tests/test_text.py::test_to_text_nonstr_passthru PASSED [439/612] tests/test_text.py::test_to_text_nonstr_empty PASSED [440/612] tests/test_text.py::test_to_text_nonstr_invalid PASSED [441/612] tests/_ntlm_raw/test_crypto.py::test_crc32 PASSED [442/612] tests/_ntlm_raw/test_crypto.py::test_lmowfv1 PASSED [443/612] tests/_ntlm_raw/test_crypto.py::test_lmowfv1_hash PASSED [444/612] tests/_ntlm_raw/test_crypto.py::test_ntowfv1 PASSED [445/612] tests/_ntlm_raw/test_crypto.py::test_ntowfv1_hash PASSED [446/612] tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security PASSED [447/612] tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security_non_nt_key PASSED [448/612] tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_no_session_security_lm_key PASSED [449/612] tests/_ntlm_raw/test_crypto.py::test_compute_response_v1_session_security PASSED [450/612] tests/_ntlm_raw/test_crypto.py::test_ntowfv2 PASSED [451/612] tests/_ntlm_raw/test_crypto.py::test_compute_response_v2 PASSED [452/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[initiate-128] PASSED [453/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[accept-128] PASSED [454/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[initiate-56] PASSED [455/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[accept-56] PASSED [456/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[initiate-40] PASSED [457/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_ess[accept-40] PASSED [458/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_lm_key_or_datagram[NegotiateFlags.key_56|lm_key-UUUUUUU\xa0] PASSED [459/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_lm_key_or_datagram[NegotiateFlags.key_56|datagram-UUUUUUU\xa0] PASSED [460/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_lm_key_or_datagram[NegotiateFlags.lm_key-UUUUU\xe58\xb0] PASSED [461/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_lm_key_or_datagram[NegotiateFlags.datagram-UUUUU\xe58\xb0] PASSED [462/612] tests/_ntlm_raw/test_crypto.py::test_seal_key_no_flags PASSED [463/612] tests/_ntlm_raw/test_crypto.py::test_signkey_no_ess PASSED [464/612] tests/_ntlm_raw/test_crypto.py::test_signkey_client PASSED [465/612] tests/_ntlm_raw/test_crypto.py::test_signkey_server PASSED [466/612] tests/_ntlm_raw/test_des.py::test_des_invalid_key_size PASSED [467/612] tests/_ntlm_raw/test_des.py::test_expand_56bit_key PASSED [468/612] tests/_ntlm_raw/test_des.py::test_encrypt_block PASSED [469/612] tests/_ntlm_raw/test_des.py::test_encrypt PASSED [470/612] tests/_ntlm_raw/test_des.py::test_encrypt_large_bytes_padding PASSED [471/612] tests/_ntlm_raw/test_des.py::test_decrypt PASSED [472/612] tests/_ntlm_raw/test_des.py::test_decrypt_large_bytes_padding PASSED [473/612] tests/_ntlm_raw/test_des.py::test_decrypt_fail_invalid_size PASSED [474/612] tests/_ntlm_raw/test_des.py::test_encrypt_decrypt_multiple_keys PASSED [475/612] tests/_ntlm_raw/test_md4.py::test_md4[-1\xd6\xcf\xe0\xd1j\xe91\xb7F$^\x05\xfb\xdb\xd6\xfb$] PASSED [477/612] tests/_ntlm_raw/test_md4.py::test_md4[abc-\xa4H\x01z\xaf!\xd8R_\xc1\n\xe8z\xa6r\x9d] PASSED [478/612] tests/_ntlm_raw/test_md4.py::test_md4[message digest-\xd9\x13\n\x81dT\x9f\xe8\x18\x87H\x06\xe1\xc7\x01K] PASSED [479/612] tests/_ntlm_raw/test_md4.py::test_md4[abcdefghijklmnopqrstuvwxyz-\xd7\x9e\x1c0\x8a\xa5\xbb\xcd\xee\xa8\xedc\xdfA-\xa9] PASSED [480/612] tests/_ntlm_raw/test_md4.py::test_md4[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-\x04?\x85\x82\xf2A\xdb5\x1c\xe6'\xe1S\xe7\xf0\xe4] PASSED [481/612] tests/_ntlm_raw/test_md4.py::test_md4[12345678901234567890123456789012345678901234567890123456789012345678901234567890-\xe3;M\xdc\x9c8\xf2\x19\x9c>{\x16O\xcc\x056] PASSED [482/612] tests/_ntlm_raw/test_md4.py::test_md4_to_hashlib PASSED [483/612] tests/_ntlm_raw/test_messages.py::test_negotiate_flags_native_labels PASSED [484/612] tests/_ntlm_raw/test_messages.py::test_av_id_native_labels PASSED [485/612] tests/_ntlm_raw/test_messages.py::test_av_flags_native_labels PASSED [486/612] tests/_ntlm_raw/test_messages.py::test_message_type_native_labels PASSED [487/612] tests/_ntlm_raw/test_messages.py::test_negotiate_pack_defaults PASSED [488/612] tests/_ntlm_raw/test_messages.py::test_negotiate_pack_with_domain PASSED [489/612] tests/_ntlm_raw/test_messages.py::test_negotiate_pack_with_all_fields PASSED [490/612] tests/_ntlm_raw/test_messages.py::test_negotiate_pack_encoding PASSED [491/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack PASSED [492/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack_with_domain PASSED [493/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack_with_all_fields PASSED [494/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack_encoding PASSED [495/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack_invalid_encoding PASSED [496/612] tests/_ntlm_raw/test_messages.py::test_negotiate_invalid_size PASSED [497/612] tests/_ntlm_raw/test_messages.py::test_negotiate_unpack_invalid_msg PASSED [498/612] tests/_ntlm_raw/test_messages.py::test_challenge_pack PASSED [499/612] tests/_ntlm_raw/test_messages.py::test_challenge_pack_target_name PASSED [500/612] tests/_ntlm_raw/test_messages.py::test_challenge_pack_target_name_oem PASSED [501/612] tests/_ntlm_raw/test_messages.py::test_challenge_pack_target_info PASSED [502/612] tests/_ntlm_raw/test_messages.py::test_challenge_pack_all_fields PASSED [503/612] tests/_ntlm_raw/test_messages.py::test_challenge_set_fields PASSED [504/612] tests/_ntlm_raw/test_messages.py::test_challenge_invalid_server_challenge_length PASSED [505/612] tests/_ntlm_raw/test_messages.py::test_challenge_invalid_size PASSED [506/612] tests/_ntlm_raw/test_messages.py::test_challenge_unpack_ntlmv1 PASSED [507/612] tests/_ntlm_raw/test_messages.py::test_challenge_unpack_ntlmv2 PASSED [508/612] tests/_ntlm_raw/test_messages.py::test_challenge_unpack_encoding PASSED [509/612] tests/_ntlm_raw/test_messages.py::test_challenge_unpack_invalid_msg PASSED [510/612] tests/_ntlm_raw/test_messages.py::test_authenticate_pack PASSED [511/612] tests/_ntlm_raw/test_messages.py::test_authenticate_pack_domain_version PASSED [512/612] tests/_ntlm_raw/test_messages.py::test_authenticate_pack_oem_encoding PASSED [513/612] tests/_ntlm_raw/test_messages.py::test_authenticate_set_flags PASSED [514/612] tests/_ntlm_raw/test_messages.py::test_authenticate_set_mic PASSED [515/612] tests/_ntlm_raw/test_messages.py::test_authenticate_set_encrypted_session_key PASSED [516/612] tests/_ntlm_raw/test_messages.py::test_authenticate_invalid_mic_length PASSED [517/612] tests/_ntlm_raw/test_messages.py::test_authenticate_set_mic_not_present PASSED [518/612] tests/_ntlm_raw/test_messages.py::test_authenticate_unpack_empty PASSED [519/612] tests/_ntlm_raw/test_messages.py::test_authenticate_unpack_ntlmv1 PASSED [520/612] tests/_ntlm_raw/test_messages.py::test_authenticate_unpack_ntlmv2 PASSED [521/612] tests/_ntlm_raw/test_messages.py::test_authenticate_unpack_mic_no_version PASSED [522/612] tests/_ntlm_raw/test_messages.py::test_authenticate_invalid_size PASSED [523/612] tests/_ntlm_raw/test_messages.py::test_authenticate_unpack_invalid_msg PASSED [524/612] tests/_ntlm_raw/test_messages.py::test_filetime_pack PASSED [525/612] tests/_ntlm_raw/test_messages.py::test_filetime_unpack PASSED [526/612] tests/_ntlm_raw/test_messages.py::test_filetime_from_datetime_nanoseconds PASSED [527/612] tests/_ntlm_raw/test_messages.py::test_filetime_now PASSED [528/612] tests/_ntlm_raw/test_messages.py::test_filetime_with_timezone PASSED [529/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_pack PASSED [530/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_create PASSED [531/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_unpack PASSED [532/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_unpack_invalid_size PASSED [533/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_resp_type PASSED [534/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_hi_resp_type PASSED [535/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_client_challenge PASSED [536/612] tests/_ntlm_raw/test_messages.py::test_nt_challenge_client_challenge_bad_length PASSED [537/612] tests/_ntlm_raw/test_messages.py::test_target_info_pack PASSED [538/612] tests/_ntlm_raw/test_messages.py::test_target_info_unpack PASSED [539/612] tests/_ntlm_raw/test_messages.py::test_single_host_pack PASSED [540/612] tests/_ntlm_raw/test_messages.py::test_single_host_defaults PASSED [541/612] tests/_ntlm_raw/test_messages.py::test_single_host_invalid_size PASSED [542/612] tests/_ntlm_raw/test_messages.py::test_single_host_invalid_custom_data_size PASSED [543/612] tests/_ntlm_raw/test_messages.py::test_single_host_invalid_machine_id_size PASSED [544/612] tests/_ntlm_raw/test_messages.py::test_single_host_unpack PASSED [545/612] tests/_ntlm_raw/test_messages.py::test_single_host_eq PASSED [546/612] tests/_ntlm_raw/test_messages.py::test_version_pack PASSED [547/612] tests/_ntlm_raw/test_messages.py::test_version_defaults PASSED [548/612] tests/_ntlm_raw/test_messages.py::test_version_unpack PASSED [549/612] tests/_ntlm_raw/test_messages.py::test_version_unpack_incorrect_length PASSED [550/612] tests/_ntlm_raw/test_messages.py::test_version_get_current PASSED [551/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0.1.0.dev1-0-1-0] PASSED [552/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0.1.0b1-0-1-0] PASSED [553/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0.1.10b1-0-1-10] PASSED [554/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0.1.0a1-0-1-0] PASSED [555/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0.1.0-0-1-0] PASSED [556/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[0-0-0-0] PASSED [557/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[1-1-0-0] PASSED [558/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[1.2-1-2-0] PASSED [559/612] tests/_ntlm_raw/test_messages.py::test_version_get_current_formats[1..-1-0-0] PASSED [560/612] tests/_ntlm_raw/test_messages.py::test_version_eq PASSED [561/612] tests/_ntlm_raw/test_security.py::test_seal_ntlmv1 PASSED [562/612] tests/_ntlm_raw/test_security.py::test_seal_ntlmv1_with_ess PASSED [563/612] tests/_ntlm_raw/test_security.py::test_seal_ntlmv2 PASSED [564/612] tests/_ntlm_raw/test_security.py::test_seal_ntlmv2_no_key_exch PASSED [565/612] tests/_ntlm_raw/test_security.py::test_sign_with_always_sign PASSED [566/612] tests/_ntlm_raw/test_security.py::test_sign_no_integrity PASSED [567/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_desc_repr SKIPPED (Can only test Cython code on Windows with compiled code.) [568/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_desc_str SKIPPED (Can only test Cython code on Windows with compiled code.) [569/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_desc_version SKIPPED (Can only test Cython code on Windows with compiled code.) [570/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_length[buffer0-3] SKIPPED (Can only test Cython code on Windows with compiled code.) [571/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_length[buffer1-5] SKIPPED (Can only test Cython code on Windows with compiled code.) [572/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_repr SKIPPED (Can only test Cython code on Windows with compiled code.) [573/612] tests/_sspi_raw/test_sspi.py::test_sec_buffer_str SKIPPED (Can only test Cython code on Windows with compiled code.) [574/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[username-domain-domain\\username] SKIPPED (Can only test Cython code on Windows with compiled code.) [575/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[username@DOMAIN--username@DOMAIN] SKIPPED (Can only test Cython code on Windows with compiled code.) [576/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[username@DOMAIN-None-username@DOMAIN] SKIPPED (Can only test Cython code on Windows with compiled code.) [577/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[None-domain-domain\\] SKIPPED (Can only test Cython code on Windows with compiled code.) [578/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[None-None-] SKIPPED (Can only test Cython code on Windows with compiled code.) [579/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[--] SKIPPED (Can only test Cython code on Windows with compiled code.) [580/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity[user\U0001d11e-domain\U0001d11e-domain\U0001d11e\\user\U0001d11e] SKIPPED (Can only test Cython code on Windows with compiled code.) [581/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity_set_username SKIPPED (Can only test Cython code on Windows with compiled code.) [582/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity_set_domain SKIPPED (Can only test Cython code on Windows with compiled code.) [583/612] tests/_sspi_raw/test_sspi.py::test_win_nt_auth_identity_set_password SKIPPED (Can only test Cython code on Windows with compiled code.) [584/612] tests/_sspi_raw/test_sspi.py::test_accept_security_context_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [585/612] tests/_sspi_raw/test_sspi.py::test_acquire_credentials_handle_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [586/612] tests/_sspi_raw/test_sspi.py::test_decrypt_message_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [587/612] tests/_sspi_raw/test_sspi.py::test_encrypt_message_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [588/612] tests/_sspi_raw/test_sspi.py::test_initialize_security_context_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [589/612] tests/_sspi_raw/test_sspi.py::test_make_signature_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [590/612] tests/_sspi_raw/test_sspi.py::test_query_context_attributes_unknown SKIPPED (Can only test Cython code on Windows with compiled code.) [591/612] tests/_sspi_raw/test_sspi.py::test_query_context_attributes_invalid_handle[0] SKIPPED (Can only test Cython code on Windows with compiled code.) [592/612] tests/_sspi_raw/test_sspi.py::test_query_context_attributes_invalid_handle[9] SKIPPED (Can only test Cython code on Windows with compiled code.) [593/612] tests/_sspi_raw/test_sspi.py::test_query_context_attributes_invalid_handle[10] SKIPPED (Can only test Cython code on Windows with compiled code.) [594/612] tests/_sspi_raw/test_sspi.py::test_verify_signature_fail SKIPPED (Can only test Cython code on Windows with compiled code.) [595/612] tests/_sspi_raw/test_text.py::test_wide_char[None-0] SKIPPED (Can only test Cython code on Windows with compiled code.) [596/612] tests/_sspi_raw/test_text.py::test_wide_char[-0] SKIPPED (Can only test Cython code on Windows with compiled code.) [597/612] tests/_sspi_raw/test_text.py::test_wide_char[cafe-5] SKIPPED (Can only test Cython code on Windows with compiled code.) [598/612] tests/_sspi_raw/test_text.py::test_wide_char[caf\xe9-5] SKIPPED (Can only test Cython code on Windows with compiled code.) [599/612] tests/_sspi_raw/test_text.py::test_wide_char[\U0001d11e-3] SKIPPED (Can only test Cython code on Windows with compiled code.) [600/612] tests/data/test_context.py::test_split_username[None-None-None] PASSED [601/612] tests/data/test_context.py::test_split_username[username-None-username] PASSED [602/612] tests/data/test_context.py::test_split_username[domain\\username-domain-username] PASSED [603/612] tests/data/test_context.py::test_split_username[username@DOMAIN.COM-None-username@DOMAIN.COM] PASSED [604/612] tests/data/test_context.py::test_gss_mech_native_labels PASSED [605/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.4.1.311.2.2.10-False] PASSED [606/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.5.5.2-False] PASSED [607/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.2.840.113554.1.2.2.3-False] PASSED [608/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.2.840.113554.1.2.2-True] PASSED [609/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.2.840.48018.1.2.2-True] PASSED [610/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.3.5.1.5.2-True] PASSED [611/612] tests/data/test_context.py::test_gss_mech_is_kerberos_oid[1.3.6.1.5.2-True] PASSED [612/612] ==================================== ERRORS ==================================== _ ERROR at setup of test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_negotiate] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb4d030> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7faceca5eef0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb4d030> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb4d030> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7faceca5eef0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb4d030> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_negotiate_through_python_ntlm[NegotiateOptions.use_gssapi-NegotiateOptions.use_negotiate] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced033190> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecaa7be0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced033190> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced033190> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecaa7be0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced033190> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_gssapi] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf04f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecaab490> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf04f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf04f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecaab490> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf04f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_sspi] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee4760> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecaab1c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee4760> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_3') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee4760> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecaab1c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee4760> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_through_python_3') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ________________ ERROR at setup of test_negotiate_with_raw_ntlm ________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_raw_ntlm0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf71f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7faceca5d1b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf71f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_raw_ntlm0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_raw_ntlm0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf71f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7faceca5d1b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf71f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_raw_ntlm0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______________ ERROR at setup of test_negotiate_with_ntlm_hash ________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_hash0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032500> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2cc10> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032500> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_hash0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_hash0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032500> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2cc10> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032500> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_hash0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___ ERROR at setup of test_negotiate_with_ntlm_and_duplicate_response_token ____ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_and_d0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88ea10> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2d090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88ea10> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_and_d0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_and_d0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88ea10> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2d090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88ea10> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_negotiate_with_ntlm_and_d0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ____________________ ERROR at setup of test_ntlm_auth[None] ____________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_None_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec623070> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2d480> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec623070> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_None_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_None_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec623070> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2d480> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec623070> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_None_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________________ ERROR at setup of test_ntlm_auth[0] ______________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_0_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb705b0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2e680> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb705b0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_0_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_0_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb705b0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2e680> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb705b0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_0_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________________ ERROR at setup of test_ntlm_auth[1] ______________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_1_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032f20> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2ef80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032f20> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_1_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_1_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032f20> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2ef80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced032f20> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_1_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________________ ERROR at setup of test_ntlm_auth[2] ______________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_2_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a380> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2f760> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a380> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_2_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_2_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a380> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2f760> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a380> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_auth_2_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_sspi] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced135a80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2f400> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced135a80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced135a80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2f400> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced135a80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_sspi] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb73910> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facece2fbe0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb73910> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb73910> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facece2fbe0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb73910> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_ntlm] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceced9ae0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecf2c280> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceced9ae0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceced9ae0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecf2c280> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceced9ae0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_ntlm] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a320> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecf2ce50> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a320> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or3') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a320> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecf2ce50> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced10a320> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_sspi_ntlm_auth_no_sign_or3') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________ ERROR at setup of test_ntlm_with_explicit_ntlm_hash ______________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_with_explicit_ntlm_h0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622b30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecf2ed40> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622b30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_with_explicit_ntlm_h0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_with_explicit_ntlm_h0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622b30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecf2ed40> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622b30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_with_explicit_ntlm_h0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-None] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88db70> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb90040> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88db70> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88db70> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb90040> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88db70> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-2] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1c490> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb90940> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1c490> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1c490> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb90940> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1c490> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-True-None] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced237ee0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb91090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced237ee0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced237ee0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb91090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced237ee0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-None] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf83b80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb917e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf83b80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti3') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf83b80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb917e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf83b80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti3') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-5] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti4') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6a40> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb916c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6a40> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti4') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti4') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6a40> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb916c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6a40> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti4') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _ ERROR at setup of test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-True-None] _ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti5') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf5ba0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb92290> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf5ba0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti5') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti5') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf5ba0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb92290> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf5ba0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_ntlm_creds_Negoti5') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ________________ ERROR at setup of test_credssp_multiple_creds _________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_multiple_creds0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce710> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb928c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce710> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_multiple_creds0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_multiple_creds0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce710> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb928c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce710> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_multiple_creds0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ________ ERROR at setup of test_credssp_min_protocol_failure_initiator _________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced20ee30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb91f30> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced20ee30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced20ee30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb91f30> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced20ee30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _________ ERROR at setup of test_credssp_min_protocol_failure_acceptor _________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2436a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecb93400> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2436a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2436a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecb93400> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2436a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_min_protocol_fail1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______________ ERROR at setup of test_credssp_invalid_handshake _______________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_handshake0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced045930> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba0670> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced045930> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_handshake0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_handshake0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced045930> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba0670> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced045930> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_handshake0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ______ ERROR at setup of test_credssp_invalid_client_authentication_v2[2] ______ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2348e0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba0f70> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2348e0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2348e0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba0f70> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2348e0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ______ ERROR at setup of test_credssp_invalid_client_authentication_v2[5] ______ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceceda110> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba0310> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceceda110> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceceda110> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba0310> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceceda110> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______ ERROR at setup of test_credssp_invalid_client_authentication[3] ________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee5000> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba0ee0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee5000> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee5000> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba0ee0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee5000> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______ ERROR at setup of test_credssp_invalid_client_authentication[4] ________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3b3ee0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba1750> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3b3ee0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au3') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3b3ee0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba1750> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3b3ee0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au3') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______ ERROR at setup of test_credssp_invalid_client_authentication[6] ________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au4') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2c4790> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba1ea0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2c4790> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au4') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au4') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2c4790> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba1ea0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2c4790> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_invalid_client_au4') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________ ERROR at setup of test_credssp_no_pub_key_after_auth _____________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_pub_key_after_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf2d10> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba01f0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf2d10> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_pub_key_after_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_pub_key_after_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf2d10> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba01f0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf2d10> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_pub_key_after_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __________ ERROR at setup of test_credssp_pub_key_mismatch_initiator ___________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced33faf0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba3490> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced33faf0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced33faf0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba3490> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced33faf0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___________ ERROR at setup of test_credssp_pub_key_mismatch_acceptor ___________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce890> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facecba37f0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce890> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce890> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facecba37f0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2ce890> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_pub_key_mismatch_1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _________________ ERROR at setup of test_credssp_no_credential _________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_credential0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2422f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec8f05e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2422f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_credential0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_credential0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2422f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec8f05e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2422f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_credssp_no_credential0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ____________________ ERROR at setup of test_token_rejected _____________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_rejected0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622650> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec824ee0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622650> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_rejected0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_rejected0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622650> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec824ee0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec622650> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_rejected0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __________________ ERROR at setup of test_token_invalid_input __________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_invalid_input0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece63820> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec825090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece63820> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_invalid_input0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_invalid_input0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece63820> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec825090> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece63820> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_invalid_input0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _________________ ERROR at setup of test_token_no_common_mechs _________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_no_common_mechs0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5ac20> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec824b80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5ac20> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_no_common_mechs0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_no_common_mechs0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5ac20> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec824b80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5ac20> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_no_common_mechs0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _________________ ERROR at setup of test_token_acceptor_first __________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_acceptor_first0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6470> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec824820> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6470> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_acceptor_first0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_acceptor_first0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6470> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec824820> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6470> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_token_acceptor_first0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __ ERROR at setup of test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-False] ___ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5bdc0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec825990> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5bdc0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5bdc0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec825990> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca5bdc0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___ ERROR at setup of test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-True] ___ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced109f30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec8269e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced109f30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced109f30> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec8269e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced109f30> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __ ERROR at setup of test_ntlm_bad_bindings[NegotiateOptions.use_gssapi-True] __ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced0028f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec8263b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced0028f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced0028f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec8263b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced0028f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___ ERROR at setup of test_ntlm_bad_bindings[NegotiateOptions.use_sspi-True] ___ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88e680> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec838550> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88e680> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia3') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia3') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88e680> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec838550> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facec88e680> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_bindings_Negotia3') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____________________ ERROR at setup of test_ntlm_bad_mic ______________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_mic0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3f8340> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec838b80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3f8340> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_mic0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_mic0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3f8340> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec838b80> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced3f8340> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_bad_mic0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______ ERROR at setup of test_ntlm_workstation_override[None-LOCALHOST] _______ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2378b0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec839750> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2378b0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2378b0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec839750> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2378b0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___________ ERROR at setup of test_ntlm_workstation_override[-None] ____________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced243250> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec838430> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced243250> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced243250> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec838430> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced243250> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______ ERROR at setup of test_ntlm_workstation_override[custom-custom] ________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf50f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec839f30> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf50f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf50f0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec839f30> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf50f0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_workstation_override2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______________ ERROR at setup of test_ntlm_custom_time[True-0] ________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_True_0_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf82dd0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec83a320> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf82dd0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_True_0_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_True_0_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf82dd0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec83a320> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf82dd0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_True_0_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _______________ ERROR at setup of test_ntlm_custom_time[False-1] _______________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_False_1_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2402e0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec83b5b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2402e0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_False_1_0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_False_1_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2402e0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec83b5b0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced2402e0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_custom_time_False_1_0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___________________ ERROR at setup of test_ntlm_no_key_exch ____________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_key_exch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf7e80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec83add0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf7e80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_key_exch0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_key_exch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf7e80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec83add0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecaf7e80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_key_exch0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ____________________ ERROR at setup of test_ntlm_lm_request ____________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_lm_request0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1e590> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec8396c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1e590> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_lm_request0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_lm_request0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1e590> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec8396c0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecb1e590> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_lm_request0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __________________ ERROR at setup of test_ntlm_no_lm_allowed ___________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_lm_allowed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced126800> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e0700> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced126800> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_lm_allowed0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_lm_allowed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced126800> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e0700> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced126800> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_lm_allowed0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __________________ ERROR at setup of test_ntlm_nt_v1_request ___________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_nt_v1_request0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced108550> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e0820> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced108550> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_nt_v1_request0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_nt_v1_request0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced108550> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e0820> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced108550> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_nt_v1_request0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _________________ ERROR at setup of test_ntlm_no_nt_v1_allowed _________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_nt_v1_allowed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6e90> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e12d0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6e90> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_nt_v1_allowed0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_nt_v1_allowed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6e90> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e12d0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecfa6e90> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_no_nt_v1_allowed0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___ ERROR at setup of test_ntlm_invalid_password[NegotiateOptions.use_ntlm] ____ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca58880> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e2170> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca58880> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca58880> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e2170> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faceca58880> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __ ERROR at setup of test_ntlm_invalid_password[NegotiateOptions.use_gssapi] ___ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6f80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e20e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6f80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6f80> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e20e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecee6f80> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ___ ERROR at setup of test_ntlm_invalid_password[NegotiateOptions.use_sspi] ____ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced240dc0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e1e10> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced240dc0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced240dc0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e1e10> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced240dc0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_invalid_password_Neg2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ______ ERROR at setup of test_ntlm_verify_fail[NegotiateOptions.use_ntlm] ______ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced1276a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e29e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced1276a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced1276a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e29e0> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faced1276a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error _____ ERROR at setup of test_ntlm_verify_fail[NegotiateOptions.use_gssapi] _____ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb9d480> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e3130> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb9d480> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat1') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb9d480> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e3130> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facedb9d480> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat1') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error ______ ERROR at setup of test_ntlm_verify_fail[NegotiateOptions.use_sspi] ______ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece62710> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec6e3f40> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece62710> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat2') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat2') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece62710> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec6e3f40> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facece62710> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_verify_fail_Negotiat2') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error __________________ ERROR at setup of test_ntlm_anon_response ___________________ tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_anon_response0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf833a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) > locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") cleanup = .cleanup at 0x7facec630a60> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf833a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_anon_response0') username = 'ÜseӜ' tests/conftest.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error During handling of the above exception, another exception occurred: tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_anon_response0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf833a0> @pytest.fixture() def ntlm_cred(tmpdir, monkeypatch): cleanup = None try: # Use unicode credentials to test out edge cases when dealing with non-ascii chars. username = "ÜseӜ" password = "Pӓ$sw0r̈d" if HAS_SSPI: domain = to_text(socket.gethostname()) # Can only test this out with Windows due to issue with gss-ntlmssp when dealing with surrogate pairs. # https://github.com/gssapi/gss-ntlmssp/issues/20 clef = to_text(b"\xF0\x9D\x84\x9E") username += clef password += clef buff = { "name": username, "password": password, "priv": win32netcon.USER_PRIV_USER, "comment": "Test account for pypsnego tests", "flags": win32netcon.UF_NORMAL_ACCOUNT, } try: win32net.NetUserAdd(None, 1, buff) except win32net.error as err: if err.winerror != 2224: # Account already exists raise def cleanup() -> None: win32net.NetUserDel(None, username) else: domain = "Dȫm̈Ąiᴞ" # gss-ntlmssp does a string comparison of the user/domain part using the current process locale settings. # To ensure it matches the credentials we specify with the non-ascii chars we need to ensure the locale is # something that can support UTF-8 character comparison. macOS can fail with unknown locale on getlocale(), # just default to env vars if this get fails. try: original_locale = locale.getlocale(locale.LC_CTYPE) except ValueError: original_locale = None def cleanup() -> None: locale.setlocale(locale.LC_CTYPE, original_locale) locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8") tmp_creds = os.path.join(to_text(tmpdir), "pÿspᴞӛgӫ TÈ$" ".creds") with open(tmp_creds, mode="wb") as fd: fd.write(to_bytes("%s:%s:%s" % (domain, username, password))) monkeypatch.setenv("NTLM_USER_FILE", to_text(tmp_creds)) yield "%s\\%s" % (domain, username), password finally: if cleanup: > cleanup() cleanup = .cleanup at 0x7facec630a60> domain = 'Dȫm̈Ąiᴞ' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facecf833a0> original_locale = ('en_US', 'UTF-8') password = 'Pӓ$sw0r̈d' tmpdir = local('/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/pytest-of-portage/pytest-0/test_ntlm_anon_response0') username = 'ÜseӜ' tests/conftest.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/conftest.py:78: in cleanup locale.setlocale(locale.LC_CTYPE, original_locale) original_locale = ('en_US', 'UTF-8') _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ category = 0, locale = 'en_US.UTF-8' def setlocale(category, locale=None): """ Set the locale for the given category. The locale can be a string, an iterable of two strings (language code and encoding), or None. Iterables are converted to strings using the locale aliasing engine. Locale strings are passed directly to the C lib. category may be given as one of the LC_* values. """ if locale and not isinstance(locale, _builtin_str): # convert to string locale = normalize(_build_localename(locale)) > return _setlocale(category, locale) E locale.Error: unsupported locale setting category = 0 locale = 'en_US.UTF-8' /usr/lib/python3.10/locale.py:620: Error =========================== short test summary info ============================ SKIPPED [24] tests/conftest.py:98: Cannot create Kerberos credential without k5test being installed SKIPPED [6] tests/test_auth.py:538: Test requires NTLM to be available through GSSAPI SKIPPED [1] tests/test_auth.py:577: Test requires NTLM to be available through GSSAPI SKIPPED [4] tests/test_auth.py:596: Test requires NTLM to be available through GSSAPI SKIPPED [6] tests/test_auth.py:625: Test requires NTLM to be available through SSPI SKIPPED [3] tests/test_auth.py:660: Test requires NTLM to be available through SSPI SKIPPED [1] tests/test_exceptions.py:88: Need a WindowsError to test this out SKIPPED [1] tests/test_exceptions.py:100: Need a WindowsError to test this out SKIPPED [1] tests/test_exceptions.py:141: Need a WindowsError to test this out SKIPPED [1] tests/test_negotiate.py:82: Requires SSPI library SKIPPED [1] tests/test_sspi.py:15: Requires SSPI library SKIPPED [1] tests/test_sspi.py:48: Requires SSPI library SKIPPED [1] tests/test_sspi.py:65: Requires SSPI library SKIPPED [1] tests/test_sspi.py:73: Requires SSPI library SKIPPED [1] tests/test_sspi.py:86: Requires SSPI library SKIPPED [1] tests/_sspi_raw/test_sspi.py:19: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:33: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:47: Can only test Cython code on Windows with compiled code. SKIPPED [2] tests/_sspi_raw/test_sspi.py:61: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:78: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:90: Can only test Cython code on Windows with compiled code. SKIPPED [7] tests/_sspi_raw/test_sspi.py:102: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:126: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:136: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:146: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:155: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:161: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:167: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:173: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:179: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:185: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:191: Can only test Cython code on Windows with compiled code. SKIPPED [3] tests/_sspi_raw/test_sspi.py:197: Can only test Cython code on Windows with compiled code. SKIPPED [1] tests/_sspi_raw/test_sspi.py:211: Can only test Cython code on Windows with compiled code. SKIPPED [5] tests/_sspi_raw/test_text.py:16: Can only test Cython code on Windows with compiled code. ERROR tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_negotiate] ERROR tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_gssapi-NegotiateOptions.use_negotiate] ERROR tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_gssapi] ERROR tests/test_auth.py::test_negotiate_through_python_ntlm[NegotiateOptions.use_negotiate-NegotiateOptions.use_sspi] ERROR tests/test_auth.py::test_negotiate_with_raw_ntlm - locale.Error: unsupp... ERROR tests/test_auth.py::test_negotiate_with_ntlm_hash - locale.Error: unsup... ERROR tests/test_auth.py::test_negotiate_with_ntlm_and_duplicate_response_token ERROR tests/test_auth.py::test_ntlm_auth[None] - locale.Error: unsupported lo... ERROR tests/test_auth.py::test_ntlm_auth[0] - locale.Error: unsupported local... ERROR tests/test_auth.py::test_ntlm_auth[1] - locale.Error: unsupported local... ERROR tests/test_auth.py::test_ntlm_auth[2] - locale.Error: unsupported local... ERROR tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_sspi] ERROR tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_sspi] ERROR tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_sspi-NegotiateOptions.use_ntlm] ERROR tests/test_auth.py::test_sspi_ntlm_auth_no_sign_or_seal[NegotiateOptions.use_ntlm-NegotiateOptions.use_ntlm] ERROR tests/test_auth.py::test_ntlm_with_explicit_ntlm_hash - locale.Error: u... ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-None] ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-False-2] ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_negotiate-True-None] ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-None] ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-False-5] ERROR tests/test_auth.py::test_credssp_ntlm_creds[NegotiateOptions.use_ntlm-True-None] ERROR tests/test_auth.py::test_credssp_multiple_creds - locale.Error: unsuppo... ERROR tests/test_auth.py::test_credssp_min_protocol_failure_initiator - local... ERROR tests/test_auth.py::test_credssp_min_protocol_failure_acceptor - locale... ERROR tests/test_credssp.py::test_credssp_invalid_handshake - locale.Error: u... ERROR tests/test_credssp.py::test_credssp_invalid_client_authentication_v2[2] ERROR tests/test_credssp.py::test_credssp_invalid_client_authentication_v2[5] ERROR tests/test_credssp.py::test_credssp_invalid_client_authentication[3] - ... ERROR tests/test_credssp.py::test_credssp_invalid_client_authentication[4] - ... ERROR tests/test_credssp.py::test_credssp_invalid_client_authentication[6] - ... ERROR tests/test_credssp.py::test_credssp_no_pub_key_after_auth - locale.Erro... ERROR tests/test_credssp.py::test_credssp_pub_key_mismatch_initiator - locale... ERROR tests/test_credssp.py::test_credssp_pub_key_mismatch_acceptor - locale.... ERROR tests/test_credssp.py::test_credssp_no_credential - locale.Error: unsup... ERROR tests/test_negotiate.py::test_token_rejected - locale.Error: unsupporte... ERROR tests/test_negotiate.py::test_token_invalid_input - locale.Error: unsup... ERROR tests/test_negotiate.py::test_token_no_common_mechs - locale.Error: uns... ERROR tests/test_negotiate.py::test_token_acceptor_first - locale.Error: unsu... ERROR tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-False] ERROR tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_ntlm-True] ERROR tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_gssapi-True] ERROR tests/test_ntlm.py::test_ntlm_bad_bindings[NegotiateOptions.use_sspi-True] ERROR tests/test_ntlm.py::test_ntlm_bad_mic - locale.Error: unsupported local... ERROR tests/test_ntlm.py::test_ntlm_workstation_override[None-LOCALHOST] - lo... ERROR tests/test_ntlm.py::test_ntlm_workstation_override[-None] - locale.Erro... ERROR tests/test_ntlm.py::test_ntlm_workstation_override[custom-custom] - loc... ERROR tests/test_ntlm.py::test_ntlm_custom_time[True-0] - locale.Error: unsup... ERROR tests/test_ntlm.py::test_ntlm_custom_time[False-1] - locale.Error: unsu... ERROR tests/test_ntlm.py::test_ntlm_no_key_exch - locale.Error: unsupported l... ERROR tests/test_ntlm.py::test_ntlm_lm_request - locale.Error: unsupported lo... ERROR tests/test_ntlm.py::test_ntlm_no_lm_allowed - locale.Error: unsupported... ERROR tests/test_ntlm.py::test_ntlm_nt_v1_request - locale.Error: unsupported... ERROR tests/test_ntlm.py::test_ntlm_no_nt_v1_allowed - locale.Error: unsuppor... ERROR tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_ntlm] ERROR tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_gssapi] ERROR tests/test_ntlm.py::test_ntlm_invalid_password[NegotiateOptions.use_sspi] ERROR tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_ntlm] - ... ERROR tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_gssapi] ERROR tests/test_ntlm.py::test_ntlm_verify_fail[NegotiateOptions.use_sspi] - ... ERROR tests/test_ntlm.py::test_ntlm_anon_response - locale.Error: unsupported... ================== 465 passed, 86 skipped, 61 errors in 4.89s ================== * ERROR: dev-python/pyspnego-0.5.3::gentoo failed (test phase): * pytest failed with python3.10 * * Call stack: * ebuild.sh, line 127: Called src_test * environment, line 3472: Called distutils-r1_src_test * environment, line 1654: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 725: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 3148: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2624: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2622: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 1061: Called distutils-r1_run_phase 'python_test' * environment, line 1577: Called python_test * environment, line 3439: Called distutils-r1_python_test * environment, line 1527: Called epytest * environment, line 2132: Called die * The specific snippet of code: * "${@}" || die -n "pytest failed with ${EPYTHON}"; * * If you need support, post the output of `emerge --info '=dev-python/pyspnego-0.5.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/pyspnego-0.5.3::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/dev-python/pyspnego-0.5.3:20220815-054052.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyspnego-0.5.3/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3' * S: '/var/tmp/portage/dev-python/pyspnego-0.5.3/work/pyspnego-0.5.3'