Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394899 - dev-python/pyopenssl-0.13 fails tests
Summary: dev-python/pyopenssl-0.13 fails tests
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 06:11 UTC by Patrick Lauer
Modified: 2016-10-24 11:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2011-12-16 06:11:35 UTC
======================================================================
FAIL: test_export (__main__.CRLTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_crypto.py", line 2512, in test_export
    self.assertEqual(text, dumped_text)
AssertionError: 'Certificate Revocation List (CRL):\n        Version 1 (0x0)\n        Signature Algorithm: md5WithRSAEncryption\n        Issuer: /C=US/ST=IL/L=Chicago/O=Testing/CN=Testing Root CA\n        Last Update: Dec 16 05:56:59 2011 GMT\n        Next Update: Mar 25 05:56:59 2012 GMT\nRevoked Certificates:\n    Serial Number: 03AB\n        Revocation Date: Dec 16 13:56:59 2011 GMT\n        CRL entry extensions:\n            X509v3 CRL Reason Code: \n                Superseded\n    Signature Algorithm: md5WithRSAEncryption\n        51:36:27:89:05:b3:dc:73:b7:27:4f:fe:b6:d8:5d:b3:4a:28:\n        e5:d9:30:99:36:19:1a:93:a0:52:3d:62:28:8d:e1:35:b6:0e:\n        03:ed:75:62:67:2b:1e:9c:a7:37:50:a8:53:1b:b1:fd:95:61:\n        b9:2f:7c:48:d4:51:39:45:8c:2c:7e:75:35:aa:fa:09:e2:62:\n        be:4b:80:58:6f:9a:7a:0c:f7:e4:82:fb:b5:06:8f:92:9f:81:\n        01:06:c5:41:f7:71:81:4d:4f:b1:ea:46:38:6a:b9:72:c8:96:\n        78:19:67:69:0f:9c:86:08:70:a4:5d:63:05:17:2a:d1:42:42:\n        a5:53\n' != 'Certificate Revocation List (CRL):\n        Version 1 (0x0)\n        Signature Algorithm: md5WithRSAEncryption\n        Issuer: /C=US/ST=IL/L=Chicago/O=Testing/CN=Testing Root CA\n        Last Update: Dec 16 05:57:00 2011 GMT\n        Next Update: Mar 25 05:57:00 2012 GMT\nRevoked Certificates:\n    Serial Number: 03AB\n        Revocation Date: Dec 16 13:56:59 2011 GMT\n        CRL entry extensions:\n            X509v3 CRL Reason Code: \n                Superseded\n    Signature Algorithm: md5WithRSAEncryption\n        8d:27:f9:95:bf:9e:42:96:f1:84:1d:44:16:ed:99:56:5f:1e:\n        3f:10:2e:b9:d6:13:f6:23:5c:df:80:1e:65:90:0c:d1:cf:9b:\n        50:d4:9b:fd:76:80:3f:66:f3:59:eb:b2:47:ce:5e:66:14:48:\n        01:ef:a9:2d:3d:94:58:10:3c:e7:80:ca:dc:97:4c:1a:50:60:\n        32:69:38:88:47:ab:4d:47:e4:7c:ca:48:0d:e8:6f:24:3b:19:\n        33:5e:34:f1:65:e2:0f:dc:e9:37:53:93:9f:1b:96:ff:4b:38:\n        f2:d9:02:ad:e8:a5:1f:50:7f:5b:3b:af:d0:6a:26:91:18:9e:\n        99:12\n'

----------------------------------------------------------------------
Ran 162 tests in 2.103s

FAILED (failures=1)
 * test_crypto.py failed with CPython 2.7
 * Running test_rand.py...
...............
----------------------------------------------------------------------
Ran 15 tests in 0.007s

OK
 * Running test_ssl.py...
..................................................................................................
----------------------------------------------------------------------
Ran 98 tests in 2.716s

OK
 * ERROR: dev-python/pyopenssl-0.13 failed (test phase):


Portage 2.2.0_alpha80 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r1, 3.1.4-gentoobonsai x86_64)
=================================================================
System uname: Linux-3.1.4-gentoobonsai-x86_64-AMD_E-350_Processor-with-gentoo-2.1
Timestamp of tree: Unknown
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo kde
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula Q3AEULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/lib/systemd"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/pal/code/gentoo-x86"
PORTDIR_OVERLAY="/var/lib/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif extras fam firefox flac fortran gdbm gdu gif gpm gtk gudev iconv icu ipv6 jabber jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sql sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis webkit x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 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, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-12-20 19:35:56 UTC
gentoo64 pyopenssl # el
Available Python interpreters:
  [1]   python2.5
  [2]   python2.6
  [3]   python2.7 *
gentoo64 pyopenssl # emerge =dev-python/pyopenssl-0.13::gentoo
>>> Emerging (1 of 1) dev-python/pyopenssl-0.13
>>> Installing (1 of 1) dev-python/pyopenssl-0.13
>>> Source compiled.
 * Testing of dev-python/pyopenssl-0.13 with CPython 2.7...
 * Running test_rand.py...
...............
----------------------------------------------------------------------
Ran 15 tests in 0.004s

OK
test was ofcourse set; so couldn't replicate
Comment 2 Mike Gilbert gentoo-dev 2011-12-29 11:21:00 UTC
Tests pass for me as well.
Comment 3 Mart Raudsepp gentoo-dev 2012-03-25 09:27:17 UTC
 * Testing of dev-python/pyopenssl-0.13 with CPython 2.7...
 * Running test_crypto.py...
Traceback (most recent call last):
  File "test_crypto.py", line 14, in <module>
    from OpenSSL.crypto import TYPE_RSA, TYPE_DSA, Error, PKey, PKeyType
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter
 * test_crypto.py failed with CPython 2.7
 * Running test_rand.py...
Traceback (most recent call last):
  File "test_rand.py", line 12, in <module>
    from OpenSSL.test.util import TestCase, b
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter
 * test_rand.py failed with CPython 2.7
 * Running test_ssl.py...
Traceback (most recent call last):
  File "test_ssl.py", line 17, in <module>
    from OpenSSL.crypto import TYPE_RSA, FILETYPE_PEM
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter
 * test_ssl.py failed with CPython 2.7
 * ERROR: dev-python/pyopenssl-0.13 failed (test phase):
 *   Testing failed with CPython 2.7 in test_package() function
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-05-31 08:17:25 UTC
Patrick, can you still reproduce this? Mart, what version of OpenSSL do you have installed?
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-05-31 08:19:22 UTC
FWIW, this fully passes for me, though there are a bunch of Resource- and DeprecationWarnings and some other spew.
Comment 6 Matt Turner gentoo-dev 2012-05-31 16:45:50 UTC
(In reply to comment #4)
> Patrick, can you still reproduce this? Mart, what version of OpenSSL do you
> have installed?

on mips:

With openssl-1.0.0h and pyopenssl-0.13, I get:

 * Testing of dev-python/pyopenssl-0.13 with CPython 2.7...
 * Running test_crypto.py...
Traceback (most recent call last):
  File "test_crypto.py", line 14, in <module>
    from OpenSSL.crypto import TYPE_RSA, TYPE_DSA, Error, PKey, PKeyType
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter
 * test_crypto.py failed with CPython 2.7
 * Running test_rand.py...
Traceback (most recent call last):
  File "test_rand.py", line 12, in <module>
    from OpenSSL.test.util import TestCase, b
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter
 * test_rand.py failed with CPython 2.7
 * Running test_ssl.py...
Traceback (most recent call last):
  File "test_ssl.py", line 17, in <module>
    from OpenSSL.crypto import TYPE_RSA, FILETYPE_PEM
  File "/var/tmp/portage/dev-python/pyopenssl-0.13/work/pyOpenSSL-0.13/build-2.7/lib.linux-mips64-2.7/OpenSSL/__init__.py", line 36, in <module>
    from OpenSSL import crypto
ImportError: invalid mode parameter

I also tried with openssl-1.0.1c. Same result.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-10-24 11:24:44 UTC
Version is no longer in portage.