~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Lib/test/test_userstring.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
import string
6
6
from test import test_support, string_tests
7
 
 
8
7
from UserString import UserString, MutableString
 
8
import warnings
9
9
 
10
10
class UserStringTest(
11
11
    string_tests.CommonTest,
135
135
        self.assertEqual(s, "")
136
136
 
137
137
def test_main():
138
 
    test_support.run_unittest(UserStringTest, MutableStringTest)
 
138
    with test_support.catch_warning(record=False):
 
139
        warnings.filterwarnings("ignore", ".*MutableString",
 
140
                                DeprecationWarning)
 
141
        test_support.run_unittest(UserStringTest, MutableStringTest)
139
142
 
140
143
if __name__ == "__main__":
141
144
    test_main()