Skip to content

Commit f020ae9

Browse files
committed
no set literals : (
1 parent 4792e62 commit f020ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/tests/test_optional/test_utils/test_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_encode_as_plotly(self):
2828

2929
# should *fail* when object doesn't have `to_plotly_json` attribute
3030
objs_without_attr = [
31-
1, 'one', {'a', 'set'}, {'a': 'dict'}, ['a', 'list']
31+
1, 'one', set(['a', 'set']), {'a': 'dict'}, ['a', 'list']
3232
]
3333
for obj in objs_without_attr:
3434
self.assertRaises(utils.NotEncodable,
@@ -49,7 +49,7 @@ def test_encode_as_list(self):
4949

5050
# should *fail* when object doesn't have `tolist` method
5151
objs_without_attr = [
52-
1, 'one', {'a', 'set'}, {'a': 'dict'}, ['a', 'list']
52+
1, 'one', set(['a', 'set']), {'a': 'dict'}, ['a', 'list']
5353
]
5454
for obj in objs_without_attr:
5555
self.assertRaises(utils.NotEncodable,

0 commit comments

Comments
 (0)