2 new revisions:
Revision: 20b75028d0cd
Branch: default
Author: Pekka Klärck
Date: Thu Sep 13 06:04:42 2012
Log: fixed ERSource unit test on IronPython after recent changes
http://code.google.com/p/robotframework/source/detail?r=20b75028d0cd
Revision: 06d19719486d
Branch: default
Author: Pekka Klärck
Date: Thu Sep 13 06:29:38 2012
Log: stopping_with_signal tests: avoid eternal hanging if test fails.
inter...
http://code.google.com/p/robotframework/source/detail?r=06d19719486d
==============================================================================
Revision: 20b75028d0cd
Branch: default
Author: Pekka Klärck
Date: Thu Sep 13 06:04:42 2012
Log: fixed ERSource unit test on IronPython after recent changes
http://code.google.com/p/robotframework/source/detail?r=20b75028d0cd
Modified:
/utest/utils/test_etreesource.py
=======================================
--- /utest/utils/test_etreesource.py Sat Jun 30 16:02:25 2012
+++ /utest/utils/test_etreesource.py Thu Sep 13 06:04:42 2012
@@ -43,7 +43,10 @@
def _test_string(self, xml):
source = ETSource(xml)
with source as src:
- assert_equals(src.read().decode('UTF-8'), xml)
+ content = src.read()
+ if not IRONPYTHON:
+ content = content.decode('UTF-8')
+ assert_equals(content, xml)
self._verify_string_representation(source, '<in-memory file>')
assert_true(source._opened.closed)
with ETSource(xml) as src:
==============================================================================
Revision: 06d19719486d
Branch: default
Author: Pekka Klärck
Date: Thu Sep 13 06:29:38 2012
Log: stopping_with_signal tests: avoid eternal hanging if test fails.
interestingly test didn't even fail anymore after this change...
http://code.google.com/p/robotframework/source/detail?r=06d19719486d
Modified:
/atest/testdata/running/stopping_with_signal/Library.py
=======================================
--- /atest/testdata/running/stopping_with_signal/Library.py Thu Sep 16
15:33:50 2010
+++ /atest/testdata/running/stopping_with_signal/Library.py Thu Sep 13
06:29:38 2012
@@ -6,9 +6,10 @@
while time.time() < max_time:
pass
-def swallow_exception():
+def swallow_exception(timeout=30):
try:
- while True:
- pass
+ busy_sleep(timeout)
except:
pass
+ else:
+ raise AssertionError('No exception')