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_profile.py

    r2 r391  
    11"""Test suite for the profile module."""
    22
    3 import os
    43import sys
    54import pstats
     
    5857            stats.print_stats()
    5958            res = s.getvalue()
    60             self.assertTrue(self.expected_list_sort_output in res,
     59            self.assertIn(self.expected_list_sort_output, res,
    6160                "Profiling {0!r} didn't report list.sort:\n{1}".format(stmt, res))
    6261
     
    9594#--cut--------------------------------------------------------------------------
    9695ProfileTest.expected_output['print_stats'] = """\
    97          127 function calls (107 primitive calls) in 999.749 CPU seconds
     96         127 function calls (107 primitive calls) in 999.749 seconds
    9897
    9998   Ordered by: standard name
Note: See TracChangeset for help on using the changeset viewer.