History

python/ext/aubiomodule.c: more hack to avoid msvc issues

Paul Brossier committed 9 years ago

Commit a1596281 parent f5e9e3f2 files · +7 −1Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/aubiomodule.c +2 −1
  2. python/tests/test_aubio.py +5 −0
python/ext/aubiomodule.c+2−1
@@ -4,7 +4,8 @@ · 3 unmodified lines
44
55 // this dummy macro is used to convince windows that a string passed as -D flag
66 // 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)
89
910 static char aubio_module_doc[] = "Python module for the aubio library";
1011
python/tests/test_aubio.py+5−0
@@ -9,6 +9,11 @@ class aubiomodule_test_case(TestCase): · 8 unmodified lines
99 """ try importing aubio """
1010 import aubio
1111
12+ def test_version(self):
13+ """ test aubio.version """
14+ import aubio
15+ self.assertEqual('0', aubio.version[0])
16+
1217 if __name__ == '__main__':
1318 main()
1419

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t