diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-02-17 18:51:48 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-02-17 18:51:48 (GMT) |
commit | 3040b199768dbf1fc93ecb95dbd27ef9485fa03d (patch) | |
tree | e5d50d2d82e706e5af1981e839f54bd6c5ef42c0 /Lib | |
parent | 8e1afab11157d698e89958106f459e2765995cde (diff) | |
download | cpython-3040b199768dbf1fc93ecb95dbd27ef9485fa03d.zip cpython-3040b199768dbf1fc93ecb95dbd27ef9485fa03d.tar.gz cpython-3040b199768dbf1fc93ecb95dbd27ef9485fa03d.tar.bz2 |
Add a basic test for UserString.MutableString.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_userstring.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py index 990199e..6057e65 100755 --- a/Lib/test/test_userstring.py +++ b/Lib/test/test_userstring.py @@ -5,7 +5,7 @@ import unittest from test import test_support, string_tests -from UserString import UserString +from UserString import UserString, MutableString class UserStringTest( string_tests.CommonTest, @@ -43,8 +43,15 @@ class UserStringTest( # we don't fix the arguments, because UserString can't cope with it getattr(object, methodname)(*args) +class MutableStringTest(UserStringTest): + type2test = MutableString + + # MutableStrings can be hashed => deactivate test + def test_hash(self): + pass + def test_main(): - test_support.run_unittest(UserStringTest) + test_support.run_unittest(UserStringTest, MutableStringTest) if __name__ == "__main__": test_main() |