ref: a159628f3aeed27043ecb01f3b6c6d2bce7e91d6
parent: f5e9e3f2f288bc6fa111cbed755fb8f2303c13ef
author: Paul Brossier <[email protected]>
date: Sun Jan 8 09:37:56 EST 2017
python/ext/aubiomodule.c: more hack to avoid msvc issues
--- a/python/ext/aubiomodule.c
+++ b/python/ext/aubiomodule.c
@@ -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.
-#define DEFINEDSTRING(x) #x
+#define REDEFINESTRING(x) #x
+#define DEFINEDSTRING(x) REDEFINESTRING(x)
static char aubio_module_doc[] = "Python module for the aubio library";
--- a/python/tests/test_aubio.py
+++ b/python/tests/test_aubio.py
@@ -9,6 +9,11 @@
""" try importing aubio """
import aubio
+ def test_version(self):
+ """ test aubio.version """
+ import aubio
+ self.assertEqual('0', aubio.version[0])
+
if __name__ == '__main__':
main()