Fix bug 938 - "QTemporaryFile JPEG problem"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
f1b330231a
commit
3c2505a625
3 changed files with 20 additions and 0 deletions
|
|
@ -1986,6 +1986,11 @@
|
||||||
<modify-function signature="readLine(char *,qint64)" remove="all"/>
|
<modify-function signature="readLine(char *,qint64)" remove="all"/>
|
||||||
<!-- ### write(str) do the job -->
|
<!-- ### write(str) do the job -->
|
||||||
<modify-function signature="write(const char *,qint64)" remove="all"/>
|
<modify-function signature="write(const char *,qint64)" remove="all"/>
|
||||||
|
<modify-function signature="write(const char *)">
|
||||||
|
<inject-code>
|
||||||
|
%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME(%1, PyString_GET_SIZE(%PYARG_1)));
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
<modify-function signature="getChar(char *)">
|
<modify-function signature="getChar(char *)">
|
||||||
<modify-argument index="1">
|
<modify-argument index="1">
|
||||||
<remove-argument />
|
<remove-argument />
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ PYSIDE_TEST(bug_835.py)
|
||||||
PYSIDE_TEST(bug_920.py)
|
PYSIDE_TEST(bug_920.py)
|
||||||
PYSIDE_TEST(bug_927.py)
|
PYSIDE_TEST(bug_927.py)
|
||||||
PYSIDE_TEST(bug_931.py)
|
PYSIDE_TEST(bug_931.py)
|
||||||
|
PYSIDE_TEST(bug_938.py)
|
||||||
PYSIDE_TEST(blocking_signals_test.py)
|
PYSIDE_TEST(blocking_signals_test.py)
|
||||||
PYSIDE_TEST(classinfo_test.py)
|
PYSIDE_TEST(classinfo_test.py)
|
||||||
PYSIDE_TEST(child_event_test.py)
|
PYSIDE_TEST(child_event_test.py)
|
||||||
|
|
|
||||||
14
tests/QtCore/bug_938.py
Normal file
14
tests/QtCore/bug_938.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import unittest
|
||||||
|
from PySide.QtCore import *
|
||||||
|
|
||||||
|
class TestBug938 (unittest.TestCase):
|
||||||
|
|
||||||
|
def testIt(self):
|
||||||
|
b = QBuffer()
|
||||||
|
b.open(QBuffer.WriteOnly)
|
||||||
|
b.write("\x0023\x005")
|
||||||
|
b.close()
|
||||||
|
self.assertEqual(b.buffer().size(), 5)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue