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
|
|
@ -19,6 +19,7 @@ PYSIDE_TEST(bug_835.py)
|
|||
PYSIDE_TEST(bug_920.py)
|
||||
PYSIDE_TEST(bug_927.py)
|
||||
PYSIDE_TEST(bug_931.py)
|
||||
PYSIDE_TEST(bug_938.py)
|
||||
PYSIDE_TEST(blocking_signals_test.py)
|
||||
PYSIDE_TEST(classinfo_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