Skip to content

Commit

Permalink
Fix random Python 3 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Jan 14, 2015
1 parent 06bdf2e commit c9289ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/datasets/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from collections import OrderedDict

from six.moves import zip

from blocks.datasets import ContainerDataset, DataStreamMapping
Expand Down Expand Up @@ -32,8 +34,8 @@ def test_dataset():
def test_sources_selection():
features = [5, 6, 7, 1]
targets = [1, 0, 1, 1]
stream = ContainerDataset({'features': features,
'targets': targets}).get_default_stream()
stream = ContainerDataset(OrderedDict(
[('features', features), ('targets', targets)])).get_default_stream()
assert list(stream.get_epoch_iterator()) == list(zip(features, targets))

stream = ContainerDataset({'features': features, 'targets': targets},
Expand Down

0 comments on commit c9289ec

Please sign in to comment.