spacepaste

  1.  
  2. +
  3. + def test_charp2str(self):
  4. + def f(a):
  5. + return len(rffi.charp2str(a))
  6. +
  7. + t, ra = self.translate(f, [rffi.CCHARP])
  8. + ra.do_ignore_memory_error()
  9. + result = ra.analyze_direct_call(graphof(t, f))
  10. + assert not result # ignore AssertionError
  11. +
  12.