mirror of https://github.com/python/cpython
Fix links to old SF bugs (#95648)
This commit is contained in:
parent
5b6acbaa20
commit
ab8a5beb5f
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
# This was taken from http://python.org/sf/1541697
|
# This was taken from https://bugs.python.org/issue1541697
|
||||||
# It's not technically a crasher. It may not even truly be infinite,
|
# It's not technically a crasher. It may not even truly be infinite,
|
||||||
# however, I haven't waited a long time to see the result. It takes
|
# however, I haven't waited a long time to see the result. It takes
|
||||||
# 100% of CPU while running this and should be fixed.
|
# 100% of CPU while running this and should be fixed.
|
||||||
|
|
|
@ -114,7 +114,7 @@ class BasicTestCase(CfgParserTestCaseClass):
|
||||||
|
|
||||||
# The use of spaces in the section names serves as a
|
# The use of spaces in the section names serves as a
|
||||||
# regression test for SourceForge bug #583248:
|
# regression test for SourceForge bug #583248:
|
||||||
# http://www.python.org/sf/583248
|
# https://bugs.python.org/issue583248
|
||||||
|
|
||||||
# API access
|
# API access
|
||||||
eq(cf.get('Foo Bar', 'foo'), 'bar1')
|
eq(cf.get('Foo Bar', 'foo'), 'bar1')
|
||||||
|
@ -932,7 +932,7 @@ class ConfigParserTestCase(BasicTestCase, unittest.TestCase):
|
||||||
('name', 'value')])
|
('name', 'value')])
|
||||||
|
|
||||||
def test_safe_interpolation(self):
|
def test_safe_interpolation(self):
|
||||||
# See http://www.python.org/sf/511737
|
# See https://bugs.python.org/issue511737
|
||||||
cf = self.fromstring("[section]\n"
|
cf = self.fromstring("[section]\n"
|
||||||
"option1{eq}xxx\n"
|
"option1{eq}xxx\n"
|
||||||
"option2{eq}%(option1)s/xxx\n"
|
"option2{eq}%(option1)s/xxx\n"
|
||||||
|
|
|
@ -371,7 +371,7 @@ class FunctionTestCase(unittest.TestCase):
|
||||||
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
|
(9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
|
||||||
|
|
||||||
def test_sf1651235(self):
|
def test_sf1651235(self):
|
||||||
# see https://www.python.org/sf/1651235
|
# see https://bugs.python.org/issue1651235
|
||||||
|
|
||||||
proto = CFUNCTYPE(c_int, RECT, POINT)
|
proto = CFUNCTYPE(c_int, RECT, POINT)
|
||||||
def callback(*args):
|
def callback(*args):
|
||||||
|
|
|
@ -93,7 +93,7 @@ class LoaderTest(unittest.TestCase):
|
||||||
# NOT fit into a 32-bit integer. FreeLibrary must be able
|
# NOT fit into a 32-bit integer. FreeLibrary must be able
|
||||||
# to accept this address.
|
# to accept this address.
|
||||||
|
|
||||||
# These are tests for https://www.python.org/sf/1703286
|
# These are tests for https://bugs.python.org/issue1703286
|
||||||
handle = LoadLibrary("advapi32")
|
handle = LoadLibrary("advapi32")
|
||||||
FreeLibrary(handle)
|
FreeLibrary(handle)
|
||||||
|
|
||||||
|
|
|
@ -845,7 +845,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
|
||||||
("getattr", "foo"),
|
("getattr", "foo"),
|
||||||
("delattr", "foo")])
|
("delattr", "foo")])
|
||||||
|
|
||||||
# http://python.org/sf/1174712
|
# https://bugs.python.org/issue1174712
|
||||||
try:
|
try:
|
||||||
class Module(types.ModuleType, str):
|
class Module(types.ModuleType, str):
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -217,7 +217,7 @@ class OtherFileTests:
|
||||||
self._checkBufferSize(1)
|
self._checkBufferSize(1)
|
||||||
|
|
||||||
def testTruncateOnWindows(self):
|
def testTruncateOnWindows(self):
|
||||||
# SF bug <http://www.python.org/sf/801631>
|
# SF bug <https://bugs.python.org/issue801631>
|
||||||
# "file.truncate fault on windows"
|
# "file.truncate fault on windows"
|
||||||
|
|
||||||
f = self.open(TESTFN, 'wb')
|
f = self.open(TESTFN, 'wb')
|
||||||
|
|
|
@ -503,7 +503,7 @@ class OtherFileTests:
|
||||||
|
|
||||||
def testTruncateOnWindows(self):
|
def testTruncateOnWindows(self):
|
||||||
def bug801631():
|
def bug801631():
|
||||||
# SF bug <http://www.python.org/sf/801631>
|
# SF bug <https://bugs.python.org/issue801631>
|
||||||
# "file.truncate fault on windows"
|
# "file.truncate fault on windows"
|
||||||
f = self.FileIO(TESTFN, 'w')
|
f = self.FileIO(TESTFN, 'w')
|
||||||
f.write(bytes(range(11)))
|
f.write(bytes(range(11)))
|
||||||
|
|
|
@ -83,7 +83,7 @@ class GetoptTests(unittest.TestCase):
|
||||||
|
|
||||||
# Much like the preceding, except with a non-alpha character ("-") in
|
# Much like the preceding, except with a non-alpha character ("-") in
|
||||||
# option name that precedes "="; failed in
|
# option name that precedes "="; failed in
|
||||||
# http://python.org/sf/126863
|
# https://bugs.python.org/issue126863
|
||||||
opts, args = getopt.do_longs([], 'foo=42', ['foo-bar', 'foo=',], [])
|
opts, args = getopt.do_longs([], 'foo=42', ['foo-bar', 'foo=',], [])
|
||||||
self.assertEqual(opts, [('--foo', '42')])
|
self.assertEqual(opts, [('--foo', '42')])
|
||||||
self.assertEqual(args, [])
|
self.assertEqual(args, [])
|
||||||
|
|
|
@ -1592,7 +1592,7 @@ class GrammarTests(unittest.TestCase):
|
||||||
s = a[-5:]
|
s = a[-5:]
|
||||||
s = a[:-1]
|
s = a[:-1]
|
||||||
s = a[-4:-3]
|
s = a[-4:-3]
|
||||||
# A rough test of SF bug 1333982. http://python.org/sf/1333982
|
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
|
||||||
# The testing here is fairly incomplete.
|
# The testing here is fairly incomplete.
|
||||||
# Test cases should include: commas with 1 and 2 colons
|
# Test cases should include: commas with 1 and 2 colons
|
||||||
d = {}
|
d = {}
|
||||||
|
|
|
@ -735,7 +735,7 @@ hello world
|
||||||
s = a[-5:]
|
s = a[-5:]
|
||||||
s = a[:-1]
|
s = a[:-1]
|
||||||
s = a[-4:-3]
|
s = a[-4:-3]
|
||||||
# A rough test of SF bug 1333982. https://python.org/sf/1333982
|
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
|
||||||
# The testing here is fairly incomplete.
|
# The testing here is fairly incomplete.
|
||||||
# Test cases should include: commas with 1 and 2 colons
|
# Test cases should include: commas with 1 and 2 colons
|
||||||
d = {}
|
d = {}
|
||||||
|
|
|
@ -714,7 +714,7 @@ class GrammarTests(unittest.TestCase):
|
||||||
s = a[-5:]
|
s = a[-5:]
|
||||||
s = a[:-1]
|
s = a[:-1]
|
||||||
s = a[-4:-3]
|
s = a[-4:-3]
|
||||||
# A rough test of SF bug 1333982. https://python.org/sf/1333982
|
# A rough test of SF bug 1333982. https://bugs.python.org/issue1333982
|
||||||
# The testing here is fairly incomplete.
|
# The testing here is fairly incomplete.
|
||||||
# Test cases should include: commas with 1 and 2 colons
|
# Test cases should include: commas with 1 and 2 colons
|
||||||
d = {}
|
d = {}
|
||||||
|
|
|
@ -508,7 +508,7 @@ class PositionTest(unittest.TestCase):
|
||||||
|
|
||||||
class sf1296433Test(unittest.TestCase):
|
class sf1296433Test(unittest.TestCase):
|
||||||
def test_parse_only_xml_data(self):
|
def test_parse_only_xml_data(self):
|
||||||
# http://python.org/sf/1296433
|
# https://bugs.python.org/issue1296433
|
||||||
#
|
#
|
||||||
xml = "<?xml version='1.0' encoding='iso8859'?><s>%s</s>" % ('a' * 1025)
|
xml = "<?xml version='1.0' encoding='iso8859'?><s>%s</s>" % ('a' * 1025)
|
||||||
# this one doesn't crash
|
# this one doesn't crash
|
||||||
|
|
|
@ -427,7 +427,7 @@ class TestSet(TestJointOps, unittest.TestCase):
|
||||||
self.assertRaises(KeyError, self.s.remove, self.thetype(self.word))
|
self.assertRaises(KeyError, self.s.remove, self.thetype(self.word))
|
||||||
|
|
||||||
def test_remove_keyerror_unpacking(self):
|
def test_remove_keyerror_unpacking(self):
|
||||||
# bug: www.python.org/sf/1576657
|
# https://bugs.python.org/issue1576657
|
||||||
for v1 in ['Q', (1,)]:
|
for v1 in ['Q', (1,)]:
|
||||||
try:
|
try:
|
||||||
self.s.remove(v1)
|
self.s.remove(v1)
|
||||||
|
|
|
@ -1556,11 +1556,11 @@ class HandlerTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_basic_and_digest_auth_handlers(self):
|
def test_basic_and_digest_auth_handlers(self):
|
||||||
# HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*
|
# HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*
|
||||||
# response (http://python.org/sf/1479302), where it should instead
|
# response (https://bugs.python.org/issue1479302), where it should instead
|
||||||
# return None to allow another handler (especially
|
# return None to allow another handler (especially
|
||||||
# HTTPBasicAuthHandler) to handle the response.
|
# HTTPBasicAuthHandler) to handle the response.
|
||||||
|
|
||||||
# Also (http://python.org/sf/14797027, RFC 2617 section 1.2), we must
|
# Also (https://bugs.python.org/issue14797027, RFC 2617 section 1.2), we must
|
||||||
# try digest first (since it's the strongest auth scheme), so we record
|
# try digest first (since it's the strongest auth scheme), so we record
|
||||||
# order of calls here to check digest comes first:
|
# order of calls here to check digest comes first:
|
||||||
class RecordingOpenerDirector(OpenerDirector):
|
class RecordingOpenerDirector(OpenerDirector):
|
||||||
|
|
12
Misc/HISTORY
12
Misc/HISTORY
|
@ -21790,7 +21790,7 @@ Library
|
||||||
x == y is False, and x != y is True. This is akin to the change made
|
x == y is False, and x != y is True. This is akin to the change made
|
||||||
for mixed-type comparisons of datetime objects in 2.3a2; more info
|
for mixed-type comparisons of datetime objects in 2.3a2; more info
|
||||||
about the rationale is in the NEWS entry for that. See also SF bug
|
about the rationale is in the NEWS entry for that. See also SF bug
|
||||||
report <http://www.python.org/sf/693121>.
|
report <https://bugs.python.org/issue693121>.
|
||||||
|
|
||||||
- On Unix platforms, if os.listdir() is called with a Unicode argument,
|
- On Unix platforms, if os.listdir() is called with a Unicode argument,
|
||||||
it now returns Unicode strings. (This behavior was added earlier
|
it now returns Unicode strings. (This behavior was added earlier
|
||||||
|
@ -22025,7 +22025,7 @@ Extension modules
|
||||||
now.
|
now.
|
||||||
|
|
||||||
today() and now() now round system timestamps to the closest
|
today() and now() now round system timestamps to the closest
|
||||||
microsecond <http://www.python.org/sf/661086>. This repairs an
|
microsecond <https://bugs.python.org/issue661086>. This repairs an
|
||||||
irritation most likely seen on Windows systems.
|
irritation most likely seen on Windows systems.
|
||||||
|
|
||||||
In dt.astimezone(tz), if tz.utcoffset(dt) returns a duration,
|
In dt.astimezone(tz), if tz.utcoffset(dt) returns a duration,
|
||||||
|
@ -22080,7 +22080,7 @@ Extension modules
|
||||||
|
|
||||||
datetime.fromtimestamp(): Like datetime.now() above, this had less than
|
datetime.fromtimestamp(): Like datetime.now() above, this had less than
|
||||||
useful behavior when the optional tinzo argument was specified. See
|
useful behavior when the optional tinzo argument was specified. See
|
||||||
also SF bug report <http://www.python.org/sf/660872>.
|
also SF bug report <https://bugs.python.org/issue660872>.
|
||||||
|
|
||||||
date and datetime comparison: In order to prevent comparison from
|
date and datetime comparison: In order to prevent comparison from
|
||||||
falling back to the default compare-object-addresses strategy, these
|
falling back to the default compare-object-addresses strategy, these
|
||||||
|
@ -22139,10 +22139,10 @@ Library
|
||||||
dependent path modules (e.g. ntpath.py) rather than os.py, so these
|
dependent path modules (e.g. ntpath.py) rather than os.py, so these
|
||||||
variables are now available via os.path. They continue to be
|
variables are now available via os.path. They continue to be
|
||||||
available from the os module.
|
available from the os module.
|
||||||
(see <http://www.python.org/sf/680789>).
|
(see <https://bugs.python.org/issue680789>).
|
||||||
|
|
||||||
- array.array was added to the types repr.py knows about (see
|
- array.array was added to the types repr.py knows about (see
|
||||||
<http://www.python.org/sf/680789>).
|
<https://bugs.python.org/issue680789>).
|
||||||
|
|
||||||
- The new pickletools.py contains lots of documentation about pickle
|
- The new pickletools.py contains lots of documentation about pickle
|
||||||
internals, and supplies some helpers for working with pickles, such as
|
internals, and supplies some helpers for working with pickles, such as
|
||||||
|
@ -22527,7 +22527,7 @@ Core and builtins
|
||||||
potential drawback is that list.sort() may require temp space of
|
potential drawback is that list.sort() may require temp space of
|
||||||
len(list)*2 bytes (``*4`` on a 64-bit machine). It's therefore possible
|
len(list)*2 bytes (``*4`` on a 64-bit machine). It's therefore possible
|
||||||
for list.sort() to raise MemoryError now, even if a comparison function
|
for list.sort() to raise MemoryError now, even if a comparison function
|
||||||
does not. See <http://www.python.org/sf/587076> for full details.
|
does not. See <https://bugs.python.org/issue587076> for full details.
|
||||||
|
|
||||||
- All standard iterators now ensure that, once StopIteration has been
|
- All standard iterators now ensure that, once StopIteration has been
|
||||||
raised, all future calls to next() on the same iterator will also
|
raised, all future calls to next() on the same iterator will also
|
||||||
|
|
|
@ -47,7 +47,7 @@ soon as we execute Python code, threads other than the gc thread can run
|
||||||
too, and they can do ordinary things with weakrefs that end up resurrecting
|
too, and they can do ordinary things with weakrefs that end up resurrecting
|
||||||
CT while gc is running.
|
CT while gc is running.
|
||||||
|
|
||||||
https://www.python.org/sf/1055820
|
https://bugs.python.org/issue1055820
|
||||||
|
|
||||||
shows how innocent it can be, and also how nasty. Variants of the three
|
shows how innocent it can be, and also how nasty. Variants of the three
|
||||||
focused test cases attached to that bug report are now part of Python's
|
focused test cases attached to that bug report are now part of Python's
|
||||||
|
|
Loading…
Reference in New Issue