~pythonregexp2.7/python/issue2636-01+09-01+10

« back to all changes in this revision

Viewing changes to Lib/test/test_re.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-15 15:37:30 UTC
  • mfrom: (39022.2.21 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080615153730-2k65sgy5fgvxmvo9
Merged in changes from the Atomic Grouping / Possessive Qulaifiers branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
753
753
        self.assertEqual(pattern1.match('abc'), None)
754
754
        self.assertNotEqual(pattern1.match('abcc'), None)
755
755
        self.assertEqual(re.match(r'(?>.*).', 'abc'), None)
 
756
        self.assertNotEqual(re.match(r'(?>x)++', 'xxx'), None)
 
757
        self.assertNotEqual(re.match(r'(?>x++)', 'xxx'), None)
 
758
        self.assertEqual(re.match(r'(?>x)++x', 'xxx'), None)
 
759
        self.assertEqual(re.match(r'(?>x++)x', 'xxx'), None)
756
760
 
757
761
def run_re_tests():
758
762
    from test.re_tests import benchmarks, tests, SUCCEED, FAIL, SYNTAX_ERROR