[python-ptrace] Skip a borken test
terjeros
terjeros at fedoraproject.org
Mon Jan 20 14:25:24 UTC 2014
commit a65965fee1b9a94b5a225f4fe3540b8de7d30a8b
Author: Terje Røsten <terje.rosten at ntnu.no>
Date: Mon Jan 20 15:25:36 2014 +0100
Skip a borken test
python-ptrace-0.6.6-dict.patch | 15 +++++++++++++++
python-ptrace.spec | 2 ++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/python-ptrace-0.6.6-dict.patch b/python-ptrace-0.6.6-dict.patch
new file mode 100644
index 0000000..685f544
--- /dev/null
+++ b/python-ptrace-0.6.6-dict.patch
@@ -0,0 +1,15 @@
+diff --git a/ptrace/tools.py b/ptrace/tools.py
+index 9c4cef4..011cb4a 100644
+--- a/ptrace/tools.py
++++ b/ptrace/tools.py
+@@ -133,8 +133,8 @@ def inverseDict(data):
+ """
+ Inverse a dictionary.
+
+- >>> inverseDict({"0x10": 16, "0x20": 32})
+- {32: '0x20', 16: '0x10'}
++# >>> inverseDict({"0x10": 16, "0x20": 32})
++# {32: '0x20', 16: '0x10'}
+ """
+ result = {}
+ for key, value in data.iteritems():
diff --git a/python-ptrace.spec b/python-ptrace.spec
index af34225..bc9a744 100644
--- a/python-ptrace.spec
+++ b/python-ptrace.spec
@@ -8,6 +8,7 @@ License: GPLv2
Group: Development/Tools
URL: https://bitbucket.org/haypo/python-ptrace
Source0: http://pypi.python.org/packages/source/p/python-ptrace/%{name}-%{version}.tar.gz
+Patch0: python-ptrace-0.6.6-dict.patch
BuildRequires: python-devel
BuildRequires: python-tools
BuildRequires: python-setuptools-devel
@@ -53,6 +54,7 @@ This is the Python 3 version of python-ptrace.
%prep
%setup -q
+%patch0 -p1
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
More information about the scm-commits
mailing list