+#include <vlc/libvlc.h>
+
+static PyObject *exception_test( PyObject *self, PyObject *args )
+{
+ libvlc_exception_t exception;
+
+ libvlc_exception_init( &exception );
+ ASSERT( !libvlc_exception_raised( &exception) , "Exception raised" );
+ ASSERT( !libvlc_exception_get_message( &exception) , "Exception raised" );
+
+ libvlc_exception_raise( &exception, NULL );
+ ASSERT( !libvlc_exception_get_message( &exception), "Unexpected message" );
+ ASSERT( libvlc_exception_raised( &exception), "Exception not raised" );
+
+ libvlc_exception_raise( &exception, "test" );
+ ASSERT( libvlc_exception_get_message( &exception), "No Message" );
+ ASSERT( libvlc_exception_raised( &exception), "Exception not raised" );
+
+ Py_INCREF( Py_None );
+ return Py_None;
+}