Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/twisted-pair/files: 14.0.0-tests.patch
Date: Wed, 28 May 2014 14:53:33
Message-Id: 20140528145329.77DCE2004E@flycatcher.gentoo.org
1 idella4 14/05/28 14:53:29
2
3 Added: 14.0.0-tests.patch
4 Log:
5 patch to fix tests, fixes Bug #510834 by Patrick, re-keyword ~arm, tested on armv7, cubieboard2 wrt Bug #510832 also by Patrick
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
8
9 Revision Changes Path
10 1.1 dev-python/twisted-pair/files/14.0.0-tests.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-pair/files/14.0.0-tests.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-pair/files/14.0.0-tests.patch?rev=1.1&content-type=text/plain
14
15 Index: 14.0.0-tests.patch
16 ===================================================================
17 Allows user to access /dev/net/tun
18 --- twisted/pair/test/test_tuntap.py.orig 2014-05-27 22:55:56.230232748 -0400
19 +++ twisted/pair/test/test_tuntap.py 2014-05-27 23:30:02.769956742 -0400
20 @@ -10,7 +10,7 @@
21 import os
22 import struct
23 import socket
24 -from errno import EPERM, EBADF, EINVAL, EAGAIN, EWOULDBLOCK, ENOENT, ENODEV
25 +from errno import EPERM, EBADF, EINVAL, EAGAIN, EWOULDBLOCK, ENOENT, ENODEV, EACCES
26 from random import randrange
27 from collections import deque
28 from itertools import cycle
29 @@ -582,8 +582,11 @@
30 except OSError as e:
31 # The device file may simply be missing. The device file may also
32 # exist but be unsupported by the kernel.
33 - if e.errno in (ENOENT, ENODEV) and filename == b"/dev/net/tun":
34 - raise SkipTest("Platform lacks /dev/net/tun")
35 + if filename == b"/dev/net/tun":
36 + if e.errno in (ENOENT, ENODEV):
37 + raise SkipTest("Platform lacks /dev/net/tun")
38 + elif e.errno == EACCES:
39 + raise SkipTest("Access denied opening /dev/net/tun")
40 raise