Fixing several tests
Using isinstance instead of comparing classes names Removing unnecessary tuple check, treated by the return value unpacking Adding missing inject code tests Adding qfile.getchar test Fixing QLocale.to* methods fixing __setitem__ in qbytearray
This commit is contained in:
parent
76529055ff
commit
74351882b5
13 changed files with 291 additions and 45 deletions
|
|
@ -13,12 +13,7 @@ class QByteArrayBufferProtocolTest(unittest.TestCase):
|
|||
def testQByteArrayBufferProtocol(self):
|
||||
#Tests QByteArray implementation of Python buffer protocol using the os.path.isdir
|
||||
#function which an unicode object or other object implementing the Python buffer protocol
|
||||
os_path_isdir_function_correctly_called_with_a_qbytearray = True
|
||||
try:
|
||||
isdir(QByteArray('/tmp'))
|
||||
except:
|
||||
os_path_isdir_function_correctly_called_with_a_qbytearray = False
|
||||
self.assertTrue(os_path_isdir_function_correctly_called_with_a_qbytearray)
|
||||
isdir(QByteArray('/tmp'))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue