~ubuntu-branches/ubuntu/natty/python3.1/natty-updates

« back to all changes in this revision

Viewing changes to Lib/distutils/tests/test_log.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-11-28 10:22:35 UTC
  • mfrom: (1.4.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101128102235-x4dwl53601yn1orc
Tags: 3.1.3-1
* Python 3.1.3 release.
  - Issue #10391: Don't dereference invalid memory in error messages
    in the ast module.
  - Issue #10459: Update CJK character names to Unicode 5.1.
  - Issue #10092: Properly reset locale in calendar.Locale*Calendar classes.
  - Issue #6098: Don't claim DOM level 3 conformance in minidom.
  - Issue #5762: Fix AttributeError raised by ``xml.dom.minidom`` when
    an empty XML namespace attribute is encountered.
  - Issue #1710703: Write structures for an empty ZIP archive when a ZipFile
    is created in modes 'a' or 'w' and then closed without adding any files.
    Raise BadZipfile (rather than IOError) when opening small non-ZIP files.
  - Issue #4493: urllib.request adds '/' in front of path components which
    does not start with '/. Common behavior exhibited by browsers and other
    clients.
  - Issue #6378: idle.bat now runs with the appropriate Python version
    rather than the system default. Patch by Sridhar Ratnakumar.
  - Issue #10407: Fix two NameErrors in distutils.
  - Issue #10198: fix duplicate header written to wave files when
    writeframes() is called without data.
  - Issue #10467: Fix BytesIO.readinto() after seeking into a position after
    the end of the file.
  - Issue #1682942: configparser supports alternative option/value delimiters.
  - Backport r83399 to allow test_distutils to pass on installed versions.
  - Accept Oracle Berkeley DB 4.8, 5.0 and 5.1 as backend for the dbm
    extension.
  - Issue #10299: List the built-in functions in a table in functions.rst.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
                log.debug("debug:\xe9")
23
23
                log.fatal("fatal:\xe9")
24
24
                stdout.seek(0)
25
 
                self.assertEquals(stdout.read().rstrip(), "debug:\\xe9")
 
25
                self.assertEqual(stdout.read().rstrip(), "debug:\\xe9")
26
26
                stderr.seek(0)
27
 
                self.assertEquals(stderr.read().rstrip(), "fatal:\\xe9")
 
27
                self.assertEqual(stderr.read().rstrip(), "fatal:\\xe9")
28
28
        finally:
29
29
            sys.stdout = old_stdout
30
30
            sys.stderr = old_stderr