'memoryview shape info'

@skip_pypy
def test_memoryview_shape(self):

    if (sys.version_info < (3,)):
        raise SkipTest('only    test    memoryviews    on    Python    3')
    data = b('\xc2\xa7\xc2\xa7\xc2\xb6\xe2\x80\xa2\xc2\xaa\xc2\xba\xcb\x9c\xc2\xb5\xc2\xac\xcb\x9a\xe2\x80\xa6\xe2\x88\x86\xcb\x99\xc3\xa5\xc3\x9f\xe2\x88\x82\xc2\xa9\xc5\x93\xe2\x88\x91\xc2\xb4\xe2\x80\xa0\xe2\x89\x88\xc3\xa7\xe2\x88\x9a')
    n = len(data)
    f = zmq.Frame(data)
    view1 = f.buffer
    self.assertEqual(view1.ndim, 1)
    self.assertEqual(view1.shape, (n,))
    self.assertEqual(view1.tobytes(), data)
    view2 = memoryview(f)
    self.assertEqual(view2.ndim, 1)
    self.assertEqual(view2.shape, (n,))
    self.assertEqual(view2.tobytes(), data)
