mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
This commit is contained in:
parent
b65b4937e2
commit
19f2aeba67
164 changed files with 2281 additions and 2279 deletions
|
|
@ -61,10 +61,10 @@ def test_starting_threads(self):
|
|||
|
||||
def test_stack_size(self):
|
||||
# Various stack size tests.
|
||||
self.assertEquals(thread.stack_size(), 0, "intial stack size is not 0")
|
||||
self.assertEqual(thread.stack_size(), 0, "intial stack size is not 0")
|
||||
|
||||
thread.stack_size(0)
|
||||
self.assertEquals(thread.stack_size(), 0, "stack_size not reset to default")
|
||||
self.assertEqual(thread.stack_size(), 0, "stack_size not reset to default")
|
||||
|
||||
if os.name not in ("nt", "os2", "posix"):
|
||||
return
|
||||
|
|
@ -84,7 +84,7 @@ def test_stack_size(self):
|
|||
fail_msg = "stack_size(%d) failed - should succeed"
|
||||
for tss in (262144, 0x100000, 0):
|
||||
thread.stack_size(tss)
|
||||
self.assertEquals(thread.stack_size(), tss, fail_msg % tss)
|
||||
self.assertEqual(thread.stack_size(), tss, fail_msg % tss)
|
||||
verbose_print("successfully set stack_size(%d)" % tss)
|
||||
|
||||
for tss in (262144, 0x100000):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue