aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-10-05 19:32:08 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:20 -0300
commit18e8f69fad1acb261080388531beec6a68d310b3 (patch)
tree78256f5f2e93d08fcac66ff81d84501a6776ef83
parent480fea82870d311ae474cee7f5931c82dd08a3a8 (diff)
Updated str test to work with both python 2.x and 3.x
-rw-r--r--tests/samplebinding/str_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/samplebinding/str_test.py b/tests/samplebinding/str_test.py
index 8fe112626..99567ad92 100644
--- a/tests/samplebinding/str_test.py
+++ b/tests/samplebinding/str_test.py
@@ -72,10 +72,10 @@ class StrTest(unittest.TestCase):
pass
# setitem
- s1[0] = 65
- s1[1] = 66
- self.assertEqual(s1[0], "A");
- self.assertEqual(s1[1], "B");
+ s1[0] = 'A'
+ s1[1] = 'B'
+ self.assertEqual(s1[0], 'A');
+ self.assertEqual(s1[1], 'B');
try:
s1[6] = 67
self.assertFalse(true);