python/ext/aubiomodule.c: more hack to avoid msvc issues
authorPaul Brossier <piem@piem.org>
Sun, 8 Jan 2017 13:37:56 +0000 (14:37 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 8 Jan 2017 13:37:56 +0000 (14:37 +0100)
python/ext/aubiomodule.c
python/tests/test_aubio.py

index ec1177c..76ed9c9 100644 (file)
@@ -4,7 +4,8 @@
 
 // this dummy macro is used to convince windows that a string passed as -D flag
 // is just that, a string, and not a double.
 
 // this dummy macro is used to convince windows that a string passed as -D flag
 // is just that, a string, and not a double.
-#define DEFINEDSTRING(x) #x
+#define REDEFINESTRING(x) #x
+#define DEFINEDSTRING(x) REDEFINESTRING(x)
 
 static char aubio_module_doc[] = "Python module for the aubio library";
 
 
 static char aubio_module_doc[] = "Python module for the aubio library";
 
index cac8397..98a6115 100755 (executable)
@@ -9,6 +9,11 @@ class aubiomodule_test_case(TestCase):
         """ try importing aubio """
         import aubio
 
         """ try importing aubio """
         import aubio
 
+    def test_version(self):
+        """ test aubio.version """
+        import aubio
+        self.assertEqual('0', aubio.version[0])
+
 if __name__ == '__main__':
     main()
 
 if __name__ == '__main__':
     main()