1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 85e7dc6

fix test

  • Participants
  • Parent commits ceb3e5d
  • Branches default

Comments (0)

Files changed (1)

File rpython/rlib/test/test_rlocale.py

View file
     if sys.platform != "darwin" and not sys.platform.startswith("linux"):
         py.test.skip("there is (maybe) no libintl here")
     _gettext = external('gettext', [rffi.CCHARP], rffi.CCHARP)
-    res = _gettext("1234")
+    p = rffi.str2charp("1234")
+    res = _gettext(p)
+    assert res == p
     assert rffi.charp2str(res) == "1234"
+    rffi.free_charp(p)