1. Pypy
  2. Untitled project
  3. pypy

Commits

wlav  committed 3fe86f7

change test now that unknown*'s are usuable

  • Participants
  • Parent commits a2be4d1
  • Branches reflex-support

Comments (0)

Files changed (2)

File pypy/module/cppyy/test/fragile.h

View file
 class C {
 public:
     virtual int check() { return (int)'C'; }
-    void use_no_such(no_such_class*) {}
+    long use_no_such(no_such_class* p) { return (long)p; }
 };
 
 class D {

File pypy/module/cppyy/test/test_fragile.py

View file
 
         assert fragile.C == fragile.C
         assert fragile.C().check() == ord('C')
-        raises(TypeError, fragile.C().use_no_such, None)
+        assert fragile.C().use_no_such(None) == 0
+        assert fragile.C().use_no_such(fragile.B().gime_no_such()) == 0
 
     def test03_arguments(self):
         """Test reporting when providing wrong arguments"""