/usr/lib/x86_64-linux-gnu/pyotherside/tests/test_added_in_14/test_added_in_14.qml is in pyotherside-tests 1.4.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import QtQuick 2.0
// Note that we import 1.3 here instead of >= 1.4
import io.thp.pyotherside 1.3
Python {
Component.onCompleted: {
var foo = undefined;
// qml: Received error: Import PyOtherSide 1.4 or newer to use getattr()
getattr(foo, 'test');
var func = eval('[]');
// qml: Received error: Function not found: '' (unexpected EOF while parsing (<string>, line 0))
call(func, [], function (result) {});
// qml: Received error: Function not found: '' (unexpected EOF while parsing (<string>, line 0))
var result = call_sync(func, []);
Qt.quit();
}
onError: {
console.log('Received error: ' + traceback);
}
}
|