Package: cyphesis-cpp / 0.6.2-3

fix-broken-PythonArithmeticScripttest.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Backport fix for broken PythonArithmeticScripttest 
 Will not be needed after Cyphesis 0.6.2
Origin: https://github.com/worldforge/cyphesis/commit/1a846529350b599652cd295ba7f3ea400e5267ba
Last-Update: 2016-08-29

--- a/tests/PythonArithmeticScripttest.cpp
+++ b/tests/PythonArithmeticScripttest.cpp
@@ -46,6 +46,7 @@
 {
     Py_Initialize();
 
+    {
     PyObject * testmod = Py_InitModule("testmod", no_methods);
 
     assert(testmod != 0);
@@ -79,6 +80,7 @@
 
     pas.set("foo", 1.0f);
     pas.set("mim", 1.0f);
+    }
 
     Py_Finalize();
     return 0;