Revision: ec3e6ca4e49f
Branch: default
Author: Pekka Klärck
Date: Fri Nov 29 14:08:56 2013 UTC
Log: islike utest: iter(object) does not raise TypeError with
IronPython. i doubt that matter for us in real life so better to not use
object in these tests than to try workaround it.
http://code.google.com/p/robotframework/source/detail?r=ec3e6ca4e49f
Modified:
/utest/utils/test_islike.py
=======================================
--- /utest/utils/test_islike.py Fri Nov 29 12:52:16 2013 UTC
+++ /utest/utils/test_islike.py Fri Nov 29 14:08:56 2013 UTC
@@ -44,7 +44,7 @@
assert_equals(is_list_like(thing), True, thing)
def test_others_are_not_list_like(self):
- for thing in [1, None, True, object(), object]:
+ for thing in [1, None, True, object()]:
assert_equals(is_list_like(thing), False, thing)
def test_generators_are_not_consumed(self):
@@ -63,7 +63,7 @@
assert_equals(is_dict_like(thing), True, thing)
def test_others(self):
- for thing in ['', u'', 1, None, True, object(), object, [], (),
set()]:
+ for thing in ['', u'', 1, None, True, object(), [], (), set()]:
assert_equals(is_dict_like(thing), False, thing)
@@ -74,7 +74,7 @@
assert_equals(is_str_like(thing), True, thing)
def test_others(self):
- for thing in [1, None, True, object(), object, [], (), {}]:
+ for thing in [1, None, True, object(), [], (), {}]:
assert_equals(is_str_like(thing), False, thing)
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.