Showing the changes to python (2 of 2 files). Show all
Unified · Split
| @@ -4,7 +4,8 @@ · 3 unmodified lines | |||
| 4 | 4 | ||
| 5 | // this dummy macro is used to convince windows that a string passed as -D flag | 5 | // this dummy macro is used to convince windows that a string passed as -D flag |
| 6 | // is just that, a string, and not a double. | 6 | // is just that, a string, and not a double. |
| 7 | #define DEFINEDSTRING(x) #x | 7 | #define REDEFINESTRING(x) #x |
| 8 | #define DEFINEDSTRING(x) REDEFINESTRING(x) | ||
| 8 | 9 | ||
| 9 | static char aubio_module_doc[] = "Python module for the aubio library"; | 10 | static char aubio_module_doc[] = "Python module for the aubio library"; |
| 10 | 11 | ||
| @@ -9,6 +9,11 @@ class aubiomodule_test_case(TestCase): · 8 unmodified lines | |||
| 9 | """ try importing aubio """ | 9 | """ try importing aubio """ |
| 10 | import aubio | 10 | import aubio |
| 11 | 11 | ||
| 12 | def test_version(self): | ||
| 13 | """ test aubio.version """ | ||
| 14 | import aubio | ||
| 15 | self.assertEqual('0', aubio.version[0]) | ||
| 16 | |||
| 12 | if __name__ == '__main__': | 17 | if __name__ == '__main__': |
| 13 | main() | 18 | main() |
| 14 | 19 | ||