summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-01 12:22:32 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-01 12:22:32 (GMT)
commit938526609f4bd3af2ab9660fa57065cd77674388 (patch)
treea6772bc55e731e38a6f092d497575f99a207ac44 /Lib/test
parent85984227ab7bc6b0625a897be49a4677c4f0eb47 (diff)
downloadcpython-938526609f4bd3af2ab9660fa57065cd77674388.zip
cpython-938526609f4bd3af2ab9660fa57065cd77674388.tar.gz
cpython-938526609f4bd3af2ab9660fa57065cd77674388.tar.bz2
Merged revisions 59245-59254 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59245 | georg.brandl | 2007-11-30 23:04:45 +0100 (Fri, 30 Nov 2007) | 2 lines Move lchmod() docs to correct place, and add versionadded tags. ........ r59249 | christian.heimes | 2007-11-30 23:36:10 +0100 (Fri, 30 Nov 2007) | 2 lines Backport of -r59242:59246 from py3k Fixed problem with regrtest caused by the additional of objects to _abcoll. ........ r59253 | christian.heimes | 2007-12-01 02:03:20 +0100 (Sat, 01 Dec 2007) | 1 line Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro. ........ r59254 | christian.heimes | 2007-12-01 12:20:10 +0100 (Sat, 01 Dec 2007) | 3 lines Feature #1534 Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API. Added a dictionary sys.float_info with information about the internal floating point type to the sys module. ........
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py10
-rw-r--r--Lib/test/test_sys.py2
2 files changed, 8 insertions, 4 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 0202207..f4569ab 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -699,10 +699,12 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
fs = warnings.filters[:]
ps = copy_reg.dispatch_table.copy()
pic = sys.path_importer_cache.copy()
- abcs = {obj: obj._abc_registry.copy()
- for abc in [getattr(_abcoll, a) for a in _abcoll.__all__
- if issubclass(getattr(_abcoll, a), _Abstract)]
- for obj in abc.__subclasses__() + [abc]}
+ abcs = {}
+ for abc in [getattr(_abcoll, a) for a in _abcoll.__all__]:
+ if not isinstance(abc, _Abstract):
+ continue
+ for obj in abc.__subclasses__() + [abc]:
+ abcs[obj] = obj._abc_registry.copy()
if indirect_test:
def run_the_test():
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 9a285c5..767f3a8 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -279,6 +279,8 @@ class SysModuleTest(unittest.TestCase):
self.assert_(isinstance(sys.copyright, str))
self.assert_(isinstance(sys.exec_prefix, str))
self.assert_(isinstance(sys.executable, str))
+ self.assert_(isinstance(sys.float_info, dict))
+ self.assertEqual(len(sys.float_info), 11)
self.assert_(isinstance(sys.hexversion, int))
self.assert_(isinstance(sys.maxint, int))
self.assert_(isinstance(sys.maxunicode, int))