def test_pickling(self):
        try:
            self.stream = cPickle.loads(cPickle.dumps(self.stream))
            server_data = self.stream.get_epoch_iterator()
            expected_data = get_stream().get_epoch_iterator()
            for _, s, e in zip(range(3), server_data, expected_data):
                for data in zip(s, e):
                    assert_allclose(*data, rtol=1e-3)
        except __HOLE__ as e:
            raise SkipTest("Skip test_that failed with: {}".format(e))
        assert_raises(StopIteration, next, server_data)
dataset/ETHPy150Open mila-udem/fuel/tests/test_server.py/TestServer.test_pickling