Changeset 391 for python/trunk/Lib/test/test_xmllib.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_xmllib.py
r2 r391 16 16 nsdoc = "<foo xmlns='URI' attr='val'/>" 17 17 18 import warnings19 warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",20 DeprecationWarning, r'xmllib$')21 22 18 from test import test_support 23 19 import unittest 24 import xmllib 20 # Silence Py3k warning 21 xmllib = test_support.import_module('xmllib', deprecated=True) 25 22 26 23 class XMLParserTestCase(unittest.TestCase): … … 40 37 h.close() 41 38 # The default namespace applies to elements... 42 self.assertEqual s(h.name, "URI foo")39 self.assertEqual(h.name, "URI foo") 43 40 # but not to attributes 44 self.assertEqual s(h.attr, {'attr':'val'})41 self.assertEqual(h.attr, {'attr':'val'}) 45 42 46 43
Note:
See TracChangeset
for help on using the changeset viewer.