DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 313 forks source link

Fix test tests.test_model.HierarchyTestCase.test_copy on py3k #461

Closed christian-proust closed 5 years ago

christian-proust commented 5 years ago

The values returned by OrderedDict.values() is an instance of a class that cannot be copied in py3k (a list in python 2). For this reason, the following message appears :

TypeError: can't pickle odict_values objects

The solution is to first copy the OrderedDict and then get the iterator on his values.

jjmontesl commented 5 years ago

Tested and merged. Thanks.