aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qbytearray_buffer_protocol_test.py
blob: 2ae0548391f1342b7823e9d2ea67ee302cac69a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''Tests QByteArray implementation of Python buffer protocol'''

import unittest
import py3kcompat as py3k

from os.path import isdir
from PySide.QtCore import QByteArray


class QByteArrayBufferProtocolTest(unittest.TestCase):
    '''Tests QByteArray implementation of Python buffer protocol'''

    def testQByteArrayBufferProtocol(self):
        if py3k.IS_PY3K:
            return
        #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
        isdir(QByteArray('/tmp'))

if __name__ == '__main__':
    unittest.main()