Commits

Antoine Pitrou  committed 98e45a4 Draft

Use str rather than bytes in test

  • Participants
  • Parent commits d2310f1
  • Branches issue10182

Comments (0)

Files changed (1)

File Lib/test/test_re.py

 
     @bigmemtest(size=_2G, memuse=2, dry_run=False)
     def test_large(self, size):
-        s = b'a' * size
-        m = re.search(b'$', s)
+        s = 'a' * size
+        m = re.search('$', s)
         self.assertIsNotNone(m)
         self.assertEqual(m.start(), size)
         self.assertEqual(m.end(), size)
-        r, n = re.subn(b'', b'', s)
+        r, n = re.subn('', '', s)
         self.assertEqual(r, s)
         self.assertEqual(n, size + 1)