Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_xmllib.py

    r2 r391  
    1616nsdoc = "<foo xmlns='URI' attr='val'/>"
    1717
    18 import warnings
    19 warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
    20                         DeprecationWarning, r'xmllib$')
    21 
    2218from test import test_support
    2319import unittest
    24 import xmllib
     20# Silence Py3k warning
     21xmllib = test_support.import_module('xmllib', deprecated=True)
    2522
    2623class XMLParserTestCase(unittest.TestCase):
     
    4037        h.close()
    4138        # The default namespace applies to elements...
    42         self.assertEquals(h.name, "URI foo")
     39        self.assertEqual(h.name, "URI foo")
    4340        # but not to attributes
    44         self.assertEquals(h.attr, {'attr':'val'})
     41        self.assertEqual(h.attr, {'attr':'val'})
    4542
    4643
Note: See TracChangeset for help on using the changeset viewer.