spacepaste

  1.  
  2. diff -r ab000b7b9ac5 pypy/module/cpyext/test/test_arraymodule.py
  3. --- a/pypy/module/cpyext/test/test_arraymodule.py Sun Apr 08 00:46:15 2018 +0300
  4. +++ b/pypy/module/cpyext/test/test_arraymodule.py Sun Apr 08 10:21:14 2018 +0300
  5. @@ -198,3 +198,9 @@
  6. assert Sub.__module__ == 'pypy.module.cpyext.test.test_arraymodule'
  7. assert str(Sub) == "<class 'pypy.module.cpyext.test.test_arraymodule.Sub'>"
  8. + def test_getset(self):
  9. + # issue #2788
  10. + module = self.import_module(name='array')
  11. + arr = module.array('i', [1,2,3])
  12. + assert arr.typecode == 'i'
  13. + raises(AttributeError, setattr, arr, 'typecode', 'f')
  14.