epel9
parent
024cd2b3c3
commit
e9cf68a0fe
@ -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')
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# User Robert Kuska <rkuska@redhat.com>
|
||||||
|
# Date 1400489832 -7200
|
||||||
|
# Node ID 47ff3652b0aed191f7bafc741c211d1415f65224
|
||||||
|
# Parent 8b3f3a14d53c561f0bae1990dc251d5fde09432e
|
||||||
|
Remove redudant print statement
|
||||||
|
|
||||||
|
diff --git a/testing/test_channel.py b/testing/test_channel.py
|
||||||
|
--- a/testing/test_channel.py
|
||||||
|
+++ b/testing/test_channel.py
|
||||||
|
@@ -72,7 +72,6 @@
|
||||||
|
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') > -1
|
||||||
|
assert str(e).find('foobar') > -1
|
Loading…
Reference in new issue