==================================== ERRORS ==================================== ___________ ERROR at setup of TestCommonCrypto.test_supports_cipher ____________ Error evaluating 'skipif' expression True Failed: expression is not a string __ ERROR at setup of TestCommonCrypto.test_register_duplicate_cipher_adapter ___ Error evaluating 'skipif' expression True Failed: expression is not a string ___________ ERROR at setup of TestCommonCrypto.test_handle_response ____________ Error evaluating 'skipif' expression True Failed: expression is not a string _______ ERROR at setup of TestCommonCrypto.test_nonexistent_aead_cipher ________ Error evaluating 'skipif' expression True Failed: expression is not a string _______ ERROR at setup of TestOpenSSL.test_large_key_size_on_old_openssl _______ Error evaluating 'skipif' expression True Failed: expression is not a string _______ ERROR at setup of TestOpenSSL.test_large_key_size_on_new_openssl _______ Error evaluating 'skipif' expression False Failed: expression is not a string ERROR at setup of TestOpenSSLRSA.test_non_sha1_pss_mgf1_hash_algorithm_on_old_openssl Error evaluating 'skipif' expression True Failed: expression is not a string True Failed: expression is not a string _______ ERROR at setup of TestCommonCrypto.test_binding_returns_same_lib _______ Error evaluating 'skipif' expression True Failed: expression is not a string _________________ ERROR at setup of TestHKDFSHA1.test_HKDFSHA1 _________________ file /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/utils.py, line 368 @pytest.mark.parametrize( ("params", "hkdf_test"), itertools.product(all_params, all_tests) ) def test_hkdf(self, backend, params, hkdf_test): fixture 'backend' not found available fixtures: tmpdir, recwarn, pytestconfig, monkeypatch, capsys, capfd use 'py.test --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/utils.py:368 ________________ ERROR at setup of TestHKDFSHA256.test_HKDFSHA1 ________________ file /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/utils.py, line 368 @pytest.mark.parametrize( ("params", "hkdf_test"), itertools.product(all_params, all_tests) ) def test_hkdf(self, backend, params, hkdf_test): fixture 'backend' not found available fixtures: tmpdir, recwarn, pytestconfig, monkeypatch, capsys, capfd use 'py.test --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/utils.py:368 _______________ ERROR at setup of TestRSA.test_generate_rsa_keys _______________ file /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py, line 83 @pytest.mark.parametrize( ("public_exponent", "key_size"), itertools.product( (3, 5, 65537), (1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1536, 2048) ) ) def test_generate_rsa_keys(self, backend, public_exponent, key_size): fixture 'backend' not found available fixtures: tmpdir, recwarn, pytestconfig, monkeypatch, capsys, capfd use 'py.test --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py:83 _____________ ERROR at setup of TestRSAEncryption.test_rsa_encrypt _____________ file /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py, line 1372 @pytest.mark.parametrize( ("key_size", "pad"), itertools.product( (1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1536, 2048), ( padding.OAEP( mgf=padding.MGF1(algorithm=hashes.SHA1()), algorithm=hashes.SHA1(), label=None ), padding.PKCS1v15() ) ) ) def test_rsa_encrypt(self, key_size, pad, backend): fixture 'key_size' not found available fixtures: tmpdir, recwarn, pytestconfig, monkeypatch, capsys, capfd use 'py.test --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py:1372 ______ ERROR at setup of TestRSAEncryption.test_rsa_encrypt_key_too_small ______ file /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py, line 1408 @pytest.mark.parametrize( ("key_size", "pad"), itertools.product( (1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1536, 2048), ( padding.OAEP( mgf=padding.MGF1(algorithm=hashes.SHA1()), algorithm=hashes.SHA1(), label=None ), padding.PKCS1v15() ) ) ) def test_rsa_encrypt_key_too_small(self, key_size, pad, backend): fixture 'key_size' not found available fixtures: tmpdir, recwarn, pytestconfig, monkeypatch, capsys, capfd use 'py.test --fixtures [testpath]' for help on them. /var/tmp/portage/dev-python/cryptography-0.4-r1/work/cryptography-0.4/tests/hazmat/primitives/test_rsa.py:1408 ============= 67550 passed, 6 skipped, 15 error in 2015.88 seconds ============= Portage 2.2.8-r1 (default/linux/alpha/13.0, gcc-4.7.3, glibc-2.17, 3.11.9 alpha) ================================================================= System uname: Linux-3.11.9-alpha-EV68AL-with-gentoo-2.2 KiB Mem: 3918320 total, 1729000 free KiB Swap: 0 total, 0 free Timestamp of tree: Sat, 21 Jun 2014 10:00:01 +0000 ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="alpha" ACCEPT_LICENSE="*" CBUILD="alpha-unknown-linux-gnu" CFLAGS="-mieee -pipe -O2 -mcpu=ev67" CHOST="alpha-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="acl alpha berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Created attachment 379398 [details] cryptography 00.4-r1 build log
These Error evaluating 'skipif' expression aren't test errors, they look as if they're to do with pytest. not in alpha ofcourse buy my run passed; == 67643 passed, 14 skipped in 693.63 seconds == I don't anticipate much further on this.
I tried running the test suite with pytest-2.4.2. Since 2.4.2 and 2.5.2 are already keyworded, that would be one of the possible versions a "pure" system would run (i.e. _not_ mixing alpha and ~alpha). Turns out the test suite passes. The same is true with 2.5.2. We have two options: 1/ Just go ahead with the keywording of cryptography, since arguably, mixed-keyword systems are not supported. 2/ Change the dep of cryptography to require >=pytest-2.4.2. and proceed as above. I have a preference for #2 since it makes for a more robust tree at little cost. It's still python-team@'s matter to decide.
In pytest's CHANGELOG, as new feature in 2.4: - allow boolean expression directly with skipif/xfail if a "reason" is also specified. Rework skipping documentation to recommend "condition as booleans" because it prevents surprises when importing markers between modules. Specifying conditions as strings will remain fully supported. Compare that to the error message in comment #0: "expression is not a string" for "True". Definitely sounds like that dep needs tightening (to >=2.4, probably).
I've updated the dep to >=dev-python/pytest-2.4.2 and will keyword cryptography-0.4-r1 on alpha for bug 503094.