diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2016-11-22 15:30:53 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2016-11-22 15:30:53 +0100 |
| commit | 0b87b69a6e5db7b3ddd4590439af6142dbc7bd7f (patch) | |
| tree | 890f2b17e9b160c9877d8e7a02d4a877e50161aa /Lib/test | |
| parent | 9ad8a639f37ded33154da1b12cddd46ab764495b (diff) | |
| parent | bcf4dccfa77df6fd75181e2a7cbfbf2d4b2c6255 (diff) | |
| download | cpython-git-0b87b69a6e5db7b3ddd4590439af6142dbc7bd7f.tar.gz | |
Merge 3.6
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_re.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 4fcd2d463d..84131d2b92 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1781,6 +1781,10 @@ SUBPATTERN None 0 0 def test_pattern_compare(self): pattern1 = re.compile('abc', re.IGNORECASE) + # equal to itself + self.assertEqual(pattern1, pattern1) + self.assertFalse(pattern1 != pattern1) + # equal re.purge() pattern2 = re.compile('abc', re.IGNORECASE) |
