mirror of https://github.com/python/cpython.git
Add newsitem for the two new unittest methods.
Also, made some whitespace cleanup.
This commit is contained in:
parent
79f57833f3
commit
af72d5221f
20
Misc/NEWS
20
Misc/NEWS
|
@ -437,6 +437,12 @@ Extension modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- unittest.py now has two additional methods called assertAlmostEqual()
|
||||
and failIfAlmostEqual(). They implement an approximate comparision
|
||||
by rounding the difference between the two arguments and comparing
|
||||
the result to zero. Approximate comparision is essential for
|
||||
unit tests of floating point results.
|
||||
|
||||
- calendar.py now depends on the new datetime module rather than
|
||||
the time module. As a result, the range of allowable dates
|
||||
has been increased.
|
||||
|
@ -1645,13 +1651,13 @@ Windows
|
|||
signal.signal(signal.SIGBREAK, signal.default_int_handler)
|
||||
|
||||
try:
|
||||
while 1:
|
||||
pass
|
||||
while 1:
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
# We get here on Ctrl+C or Ctrl+Break now; if we had not changed
|
||||
# SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
|
||||
# program without the possibility for any Python-level cleanup).
|
||||
print "Clean exit"
|
||||
# We get here on Ctrl+C or Ctrl+Break now; if we had not changed
|
||||
# SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
|
||||
# program without the possibility for any Python-level cleanup).
|
||||
print "Clean exit"
|
||||
|
||||
|
||||
What's New in Python 2.2a4?
|
||||
|
@ -2008,7 +2014,7 @@ C API
|
|||
|
||||
double x = PyLong_AsDouble(some_long_object);
|
||||
if (x == -1.0 && PyErr_Occurred()) {
|
||||
/* The conversion failed. */
|
||||
/* The conversion failed. */
|
||||
}
|
||||
|
||||
- The GC API has been changed. Extensions that use the old API will still
|
||||
|
|
Loading…
Reference in New Issue