diff options
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/source/bridgetest/pyuno/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/source/bridgetest/pyuno/core.py b/testtools/source/bridgetest/pyuno/core.py index b45e10f78d88..c56e9f144df8 100644 --- a/testtools/source/bridgetest/pyuno/core.py +++ b/testtools/source/bridgetest/pyuno/core.py @@ -336,10 +336,10 @@ class TestCase( unittest.TestCase): self.failUnlessRaises( (RuntimeException), uno.getConstantByName, "com.sun.star.uno.XInterface" ) def testByteSequence( self ): - s = uno.ByteSequence( "ab" ) - self.failUnless( s == uno.ByteSequence( "ab" ) ) - self.failUnless( uno.ByteSequence( "abc" ) == s + uno.ByteSequence( "c" ) ) - self.failUnless( uno.ByteSequence( "abc" ) == s + "c" ) + s = uno.ByteSequence( b"ab" ) + self.failUnless( s == uno.ByteSequence( b"ab" ) ) + self.failUnless( uno.ByteSequence( b"abc" ) == s + uno.ByteSequence( b"c" ) ) + self.failUnless( uno.ByteSequence( b"abc" ) == s + "c" ) self.failUnless( s + "c" == "abc" ) self.failUnless( s == uno.ByteSequence( s ) ) self.failUnless( s[0] == 'a' ) |