summaryrefslogtreecommitdiffstats
path: root/python-execnet-fix-test-channel-on-python-3.4.patch
diff options
context:
space:
mode:
authorSlavek Kabrda <bkabrda@redhat.com>2014-05-19 11:05:16 +0200
committerSlavek Kabrda <bkabrda@redhat.com>2014-05-19 11:10:49 +0200
commite9cf68a0fed4be0a5fbdcf2858e3ed36e041323d (patch)
treeb8a9391cffe86910e57cf337b4d0737cadc8e5f5 /python-execnet-fix-test-channel-on-python-3.4.patch
parent024cd2b3c3f4e79a78758e1e49260058d2ce06cc (diff)
downloadpython-execnet-e9cf68a0fed4be0a5fbdcf2858e3ed36e041323d.tar.gz
python-execnet-e9cf68a0fed4be0a5fbdcf2858e3ed36e041323d.tar.xz
python-execnet-e9cf68a0fed4be0a5fbdcf2858e3ed36e041323d.zip
Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
Diffstat (limited to 'python-execnet-fix-test-channel-on-python-3.4.patch')
-rw-r--r--python-execnet-fix-test-channel-on-python-3.4.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/python-execnet-fix-test-channel-on-python-3.4.patch b/python-execnet-fix-test-channel-on-python-3.4.patch
new file mode 100644
index 0000000..87e0ecc
--- /dev/null
+++ b/python-execnet-fix-test-channel-on-python-3.4.patch
@@ -0,0 +1,23 @@
+# HG changeset patch
+# User Robert Kuska <rkuska@redhat.com>
+# Date 1400488914 -7200
+# Node ID 8b3f3a14d53c561f0bae1990dc251d5fde09432e
+# Parent 6f3729e2c7eb97616a71b8f917b4f4986dfdd8b7
+Fixes test in test_channel according the new exec traceback in py3.4
+
+diff --git a/testing/test_channel.py b/testing/test_channel.py
+--- a/testing/test_channel.py
++++ b/testing/test_channel.py
+@@ -72,9 +72,10 @@
+ channel.receive()
+ except channel.RemoteError:
+ e = sys.exc_info()[1]
++ print(e)
+ assert str(e).startswith('Traceback (most recent call last):')
+- assert str(e).find('NameError: global name \'foobar\' '
+- 'is not defined') > -1
++ assert str(e).find('NameError') > -1
++ assert str(e).find('foobar') > -1
+ else:
+ pytest.fail('No exception raised')
+