diff options
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/regrtest.py | 10 | ||||
-rw-r--r-- | Lib/test/test_sys.py | 2 |
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)) |