Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601332 - dev-python/pyopenssl-16.2.0 fails tests
Summary: dev-python/pyopenssl-16.2.0 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-01 10:05 UTC by Paolo Pedroni
Modified: 2017-02-19 17:46 UTC (History)
3 users (show)

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


Attachments
pyopenssl-16.2.0:20161201-085939.log.gz - run with pypy and pypy3 (pyopenssl-16.2.0:20161201-085939.log.gz,12.49 KB, application/gzip)
2016-12-01 10:05 UTC, Paolo Pedroni
Details
pyopenssl-16.2.0:20161201-094218.log.gz - run with only python2_7 and python3_5 (pyopenssl-16.2.0:20161201-094218.log.gz,23.16 KB, application/gzip)
2016-12-01 10:08 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2016-12-01 10:05:08 UTC
Created attachment 454818 [details]
pyopenssl-16.2.0:20161201-085939.log.gz - run with pypy and pypy3

Actually it runs no tests at all with pypy and python2_7:
 * pypy: running distutils-r1_run_phase python_test
/usr/bin/pypy setup.py test
running test
running egg_info
writing /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/PKG-INFO
writing dependency_links to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/dependency_links.txt
writing requirements to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/requires.txt
writing top-level names to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/top_level.txt
reading manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.mention-bot'
writing manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy/pyOpenSSL.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

...and runs tests but with failures with pypy3 and python3_5:
 * pypy3: running distutils-r1_run_phase python_test
/usr/bin/pypy3 setup.py test
running test
running egg_info
writing /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/PKG-INFO
writing dependency_links to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/dependency_links.txt
writing requirements to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/requires.txt
writing top-level names to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/top_level.txt
reading manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.mention-bot'
writing manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-pypy3/pyOpenSSL.egg-info/SOURCES.txt'
running build_ext
[...SNIP...]
======================================================================
ERROR: test_buffer_size_long (tests.test_ssl.ConnectionBIOTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3818, in test_buffer_size_long
    data = conn.bio_read(long(2))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_short_buffer (tests.test_ssl.ConnectionSendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2962, in test_short_buffer
    count = server.send(buffer(b'xy'))
NameError: global name 'buffer' is not defined

======================================================================
ERROR: test_short_buffers (tests.test_ssl.ConnectionSendallTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3165, in test_short_buffers
    server.sendall(buffer(b'x'))
NameError: global name 'buffer' is not defined

======================================================================
ERROR: test_set_shutdown_long (tests.test_ssl.ConnectionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2433, in test_set_shutdown_long
    connection.set_shutdown(long(RECEIVED_SHUTDOWN))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_method_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 524, in test_method_long
    Context(long(TLSv1_METHOD))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_session_cache_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1568, in test_session_cache_mode_long
    context.set_session_cache_mode(long(SESS_CACHE_BOTH))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_set_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 823, in test_set_mode_long
    mode = context.set_mode(long(MODE_RELEASE_BUFFERS))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_set_options_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 794, in test_set_options_long
    options = context.set_options(long(OP_NO_SSLv2))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_set_verify_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1463, in test_set_verify_mode_long
    long(VERIFY_PEER | VERIFY_CLIENT_ONCE), lambda *args: None
NameError: global name 'long' is not defined

======================================================================
ERROR: test_timeout_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 861, in test_timeout_long
    context.set_timeout(long(1234))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_use_certificate_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 706, in test_use_certificate_file_long
    ctx.use_certificate_file(pem_filename, long(FILETYPE_PEM))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_use_privatekey_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 596, in test_use_privatekey_file_long
    self._use_privatekey_file_test(self.mktemp(), long(FILETYPE_PEM))
NameError: global name 'long' is not defined

======================================================================
ERROR: test_verify_depth_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 899, in test_verify_depth_long
    context.set_verify_depth(long(11))
NameError: global name 'long' is not defined

----------------------------------------------------------------------
Ran 459 tests in 4.249s

FAILED (errors=13)
Comment 1 Paolo Pedroni 2016-12-01 10:05:27 UTC
# emerge --info =dev-python/pyopenssl-16.2.0
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.22-r4, 4.8.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    15865544 total,    204796 free
KiB Swap:    8171516 total,   8171516 free
Timestamp of repository gentoo: Thu, 01 Dec 2016 08:15:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks ipc-sandbox merge-sync news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
MAKEOPTS="-j11 -l8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi adns alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt css cups curl cxx dbus declarative dga djvu dri dts dvd dvdr emboss encode exif expat fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glamor gmp gnutls gphoto2 gpm graphviz gtk handbook iconv icu idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kipi lame lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio qml qt3support qt4 qt5 rdesktop readline recode samba sctp sdl seccomp session sndfile sockets speex spell sqlite sse sse2 ssl startup-notification subversion svg symlink syslog systemd sysvipc taglib theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vcd vim-syntax vnc vorbis wayland widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" 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="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="it it_IT" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5 pypy pypy3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-python/pyopenssl-16.2.0::gentoo was built with the following:
USE="-doc -examples -test" ABI_X86="64" PYTHON_TARGETS="pypy python2_7 python3_5 -python3_4"

# emerge -1pqv =dev-python/pyopenssl-16.2.0
[ebuild   R   ] dev-python/pyopenssl-16.2.0  USE="{test*} -doc -examples" PYTHON_TARGETS="pypy pypy3%* python2_7 python3_5 -python3_4"
Comment 2 Paolo Pedroni 2016-12-01 10:08:41 UTC
Created attachment 454820 [details]
pyopenssl-16.2.0:20161201-094218.log.gz - run with only python2_7 and python3_5

Removing pypy and pypy3, in case they are problematic:

 * python2_7: running distutils-r1_run_phase python_test
/usr/bin/python2.7 setup.py test
running test
running egg_info
writing requirements to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/requires.txt
writing /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/PKG-INFO
writing top-level names to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/top_level.txt
writing dependency_links to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/dependency_links.txt
reading manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.mention-bot'
writing manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python2_7/pyOpenSSL.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
 * python3_5: running distutils-r1_run_phase python_test
/usr/bin/python3.5 setup.py test
running test
running egg_info
writing top-level names to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/top_level.txt
writing dependency_links to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/dependency_links.txt
writing requirements to /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/requires.txt
writing /var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/PKG-INFO
reading manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'leakcheck'
warning: no previously-included files matching '*.py' found under directory 'leakcheck'
warning: no previously-included files matching '*.pem' found under directory 'leakcheck'
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching '.travis'
no previously-included directories found matching '.mention-bot'
writing manifest file '/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0-python3_5/pyOpenSSL.egg-info/SOURCES.txt'
running build_ext
[...SNIP...]
======================================================================
ERROR: test_buffer_size_long (tests.test_ssl.ConnectionBIOTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3818, in test_buffer_size_long
    data = conn.bio_read(long(2))
NameError: name 'long' is not defined

======================================================================
ERROR: test_short_buffer (tests.test_ssl.ConnectionSendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2962, in test_short_buffer
    count = server.send(buffer(b'xy'))
NameError: name 'buffer' is not defined

======================================================================
ERROR: test_short_buffers (tests.test_ssl.ConnectionSendallTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3165, in test_short_buffers
    server.sendall(buffer(b'x'))
NameError: name 'buffer' is not defined

======================================================================
ERROR: test_set_shutdown_long (tests.test_ssl.ConnectionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2433, in test_set_shutdown_long
    connection.set_shutdown(long(RECEIVED_SHUTDOWN))
NameError: name 'long' is not defined

======================================================================
ERROR: test_method_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 524, in test_method_long
    Context(long(TLSv1_METHOD))
NameError: name 'long' is not defined

======================================================================
ERROR: test_session_cache_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1568, in test_session_cache_mode_long
    context.set_session_cache_mode(long(SESS_CACHE_BOTH))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 823, in test_set_mode_long
    mode = context.set_mode(long(MODE_RELEASE_BUFFERS))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_options_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 794, in test_set_options_long
    options = context.set_options(long(OP_NO_SSLv2))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_verify_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1463, in test_set_verify_mode_long
    long(VERIFY_PEER | VERIFY_CLIENT_ONCE), lambda *args: None
NameError: name 'long' is not defined

======================================================================
ERROR: test_timeout_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 861, in test_timeout_long
    context.set_timeout(long(1234))
NameError: name 'long' is not defined

======================================================================
ERROR: test_use_certificate_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 706, in test_use_certificate_file_long
    ctx.use_certificate_file(pem_filename, long(FILETYPE_PEM))
NameError: name 'long' is not defined

======================================================================
ERROR: test_use_privatekey_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 596, in test_use_privatekey_file_long
    self._use_privatekey_file_test(self.mktemp(), long(FILETYPE_PEM))
NameError: name 'long' is not defined

======================================================================
ERROR: test_verify_depth_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 899, in test_verify_depth_long
    context.set_verify_depth(long(11))
NameError: name 'long' is not defined

======================================================================
ERROR: test_buffer_size_long (tests.test_ssl.ConnectionBIOTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3818, in test_buffer_size_long
    data = conn.bio_read(long(2))
NameError: name 'long' is not defined

======================================================================
ERROR: test_short_buffer (tests.test_ssl.ConnectionSendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2962, in test_short_buffer
    count = server.send(buffer(b'xy'))
NameError: name 'buffer' is not defined

======================================================================
ERROR: test_short_buffers (tests.test_ssl.ConnectionSendallTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 3165, in test_short_buffers
    server.sendall(buffer(b'x'))
NameError: name 'buffer' is not defined

======================================================================
ERROR: test_set_shutdown_long (tests.test_ssl.ConnectionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 2433, in test_set_shutdown_long
    connection.set_shutdown(long(RECEIVED_SHUTDOWN))
NameError: name 'long' is not defined

======================================================================
ERROR: test_method_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 524, in test_method_long
    Context(long(TLSv1_METHOD))
NameError: name 'long' is not defined

======================================================================
ERROR: test_session_cache_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1568, in test_session_cache_mode_long
    context.set_session_cache_mode(long(SESS_CACHE_BOTH))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 823, in test_set_mode_long
    mode = context.set_mode(long(MODE_RELEASE_BUFFERS))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_options_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 794, in test_set_options_long
    options = context.set_options(long(OP_NO_SSLv2))
NameError: name 'long' is not defined

======================================================================
ERROR: test_set_verify_mode_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 1463, in test_set_verify_mode_long
    long(VERIFY_PEER | VERIFY_CLIENT_ONCE), lambda *args: None
NameError: name 'long' is not defined

======================================================================
ERROR: test_timeout_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 861, in test_timeout_long
    context.set_timeout(long(1234))
NameError: name 'long' is not defined

======================================================================
ERROR: test_use_certificate_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 706, in test_use_certificate_file_long
    ctx.use_certificate_file(pem_filename, long(FILETYPE_PEM))
NameError: name 'long' is not defined

======================================================================
ERROR: test_use_privatekey_file_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 596, in test_use_privatekey_file_long
    self._use_privatekey_file_test(self.mktemp(), long(FILETYPE_PEM))
NameError: name 'long' is not defined

======================================================================
ERROR: test_verify_depth_long (tests.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_ssl.py", line 899, in test_verify_depth_long
    context.set_verify_depth(long(11))
NameError: name 'long' is not defined

======================================================================
FAIL: test_gmtime_adj_notBefore (tests.test_crypto.X509Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pyopenssl-16.2.0/work/pyOpenSSL-16.2.0/tests/test_crypto.py", line 1659, in test_gmtime_adj_notBefore
    self.assertTrue(not_before_min <= not_before <= not_before_max)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 918 tests in 19.955s

FAILED (failures=1, errors=26)
Comment 3 Myckel Habets 2017-01-08 21:52:30 UTC
Confirmed.

emerge --info
Portage 2.3.0 (python 3.4.5-final-0, default/linux/x86/13.0/desktop, gcc-4.9.4, glibc-2.22-r4, 4.4.26-gentoo i686)
=================================================================
System uname: Linux-4.4.26-gentoo-i686-Pentium_III_-Katmai-with-gentoo-2.3
KiB Mem:     3114180 total,   2351324 free
KiB Swap:    4193276 total,   4193276 free
Timestamp of repository gentoo: Sat, 07 Jan 2017 12:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="nl_NL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa berkdb bzip2 cairo cdda cli client consolekit corefonts cracklib crypt cxx dbus dconf dmx dri dts dvd dvdr eds emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv icu ipv6 jpeg latex lcms libkms libnotify mad minizip mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf pic png policykit ppds python qt3support qt4 readline sdl seccomp session sqlite ssl startup-notification svg systemd tcpd theora tiff truetype udev udisks unicode usb vala vorbis wxwidgets x264 x86 xa xattr xcb xml xv xvfb xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem 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" CPU_FLAGS_X86="mmx mmxext sse" 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" GRUB_PLATFORMS="pc qemu" 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" LINGUAS="fr de nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="cirrus" XTABLES_ADDONS="iface"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2017-01-23 06:23:19 UTC

*** This bug has been marked as a duplicate of bug 576756 ***
Comment 5 Mart Raudsepp gentoo-dev 2017-02-09 02:00:15 UTC
This is not a duplicate, the failing tests are completely different for a completely different pyopenssl version. Still happening too.
Comment 6 Mike Gilbert gentoo-dev 2017-02-19 17:46:47 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c5eb3f80881d1fbabd9e0608e171f7d0f22c5f5

commit 5c5eb3f80881d1fbabd9e0608e171f7d0f22c5f5
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Feb 19 12:44:28 2017 -0500

    dev-python/pyopenssl: use pytest collector
    
    Also disable test_set_default_verify_paths, which requires network
    access.
    
    Bug: https://bugs.gentoo.org/601332
    Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49

 dev-python/pyopenssl/pyopenssl-16.2.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)