diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-10 20:09:20 (GMT) |
commit | 1f70221b861a3714735251d57695b2f472d0599b (patch) | |
tree | 945cd43b04b6351e71c23aa0cb19f6fab1f3ddda /Lib/test/test_re.py | |
parent | 284164b47638e4e71a933ce136a33fdd352f7bac (diff) | |
download | cpython-1f70221b861a3714735251d57695b2f472d0599b.zip cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.gz cpython-1f70221b861a3714735251d57695b2f472d0599b.tar.bz2 |
Issue #19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index d879bac..7ebbf05 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -700,7 +700,7 @@ class ReTests(unittest.TestCase): try: unicode except NameError: - return # no problem if we have no unicode + self.skipTest('no problem if we have no unicode') class my_unicode(unicode): pass pat = re.compile(my_unicode("abc")) self.assertEqual(pat.match("xyz"), None) @@ -714,7 +714,7 @@ class ReTests(unittest.TestCase): try: unicode except NameError: - return # no problem if we have no unicode + self.skipTest('no problem if we have no unicode') self.assertTrue(re.compile('bug_926075') is not re.compile(eval("u'bug_926075'"))) @@ -722,7 +722,7 @@ class ReTests(unittest.TestCase): try: unicode except NameError: - pass + self.skipTest('no problem if we have no unicode') pattern = eval('u"[\u002E\u3002\uFF0E\uFF61]"') self.assertEqual(re.compile(pattern).split("a.b.c"), ['a','b','c']) |