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
4 4
5// this dummy macro is used to convince windows that a string passed as -D flag5// 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) #x7#define REDEFINESTRING(x) #x
8#define DEFINEDSTRING(x) REDEFINESTRING(x)
8 9
9static char aubio_module_doc[] = "Python module for the aubio library";10static char aubio_module_doc[] = "Python module for the aubio library";
10 11
python/tests/test_aubio.py+5−0
@@ -9,6 +9,11 @@ class aubiomodule_test_case(TestCase): · 8 unmodified lines
9 """ try importing aubio """9 """ try importing aubio """
10 import aubio10 import aubio
11 11
12 def test_version(self):
13 """ test aubio.version """
14 import aubio
15 self.assertEqual('0', aubio.version[0])
16
12if __name__ == '__main__':17if __name__ == '__main__':
13 main()18 main()
14 19

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