From: Paul Brossier Date: Sun, 8 Jan 2017 13:37:56 +0000 (+0100) Subject: python/ext/aubiomodule.c: more hack to avoid msvc issues X-Git-Tag: 0.4.4~13 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=a159628f3aeed27043ecb01f3b6c6d2bce7e91d6 python/ext/aubiomodule.c: more hack to avoid msvc issues --- diff --git a/python/ext/aubiomodule.c b/python/ext/aubiomodule.c index ec1177ce..76ed9c9b 100644 --- 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"; diff --git a/python/tests/test_aubio.py b/python/tests/test_aubio.py index cac83971..98a61154 100755 --- a/python/tests/test_aubio.py +++ b/python/tests/test_aubio.py @@ -9,6 +9,11 @@ class aubiomodule_test_case(TestCase): """ try importing aubio """ import aubio + def test_version(self): + """ test aubio.version """ + import aubio + self.assertEqual('0', aubio.version[0]) + if __name__ == '__main__': main()