[Zope-dev] ZConfig 2.5.1 test failures

Timothy Selivanow timothy.selivanow at virtualxistenz.com
Tue Apr 22 18:49:07 EDT 2008


I'm getting a Traceback when running `python setup.py test` for
ZConfig-2.5.1 as per the changelog.  Attached is the output, let me know
how I can help.  I'm not a proficient python programmer; however, I'm
more than willing to learn more.


--Tim
 _________________________________________________________________ 
/ They collapsed ... like nuns in the street ... they had no teen \
\ appeal!                                                         /
 ----------------------------------------------------------------- 
  \
   \   \
        \ /\
        ( )
      .( o ).
-------------- next part --------------
running test
running egg_info
writing ZConfig.egg-info/PKG-INFO
writing top-level names to ZConfig.egg-info/top_level.txt
writing dependency_links to ZConfig.egg-info/dependency_links.txt
reading manifest file 'ZConfig.egg-info/SOURCES.txt'
writing manifest file 'ZConfig.egg-info/SOURCES.txt'
running build_ext
test_derived_dict (ZConfig.components.basic.tests.test_mapping.BasicSectionTypeTestCase) ... ok
test_simple_dict (ZConfig.components.basic.tests.test_mapping.BasicSectionTypeTestCase) ... ok
test_simple_empty_dict (ZConfig.components.basic.tests.test_mapping.BasicSectionTypeTestCase) ... ok
test_config_without_handlers (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_config_without_logger (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_custom_formatter (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_http_method (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_logging_level (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_syslog_facility (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_email_notifier (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_http_logger_localhost (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_http_logger_remote_host (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_logfile (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_rotating_logfile (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_stderr (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_stdout (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_with_syslog (ZConfig.components.logger.tests.test_logger.TestConfig) ... ok
test_filehandler_reopen (ZConfig.components.logger.tests.test_logger.TestReopeningLogfiles) ... ok
test_logfile_reopening (ZConfig.components.logger.tests.test_logger.TestReopeningLogfiles) ... ok
test_filehandler_reopen (ZConfig.components.logger.tests.test_logger.TestReopeningRotatingLogfiles) ... ok
test_logfile_reopening (ZConfig.components.logger.tests.test_logger.TestReopeningRotatingLogfiles) ... ok
test_missing_import (ZConfig.tests.test_cfgimports.TestImportFromConfiguration) ... ok
test_repeated_import (ZConfig.tests.test_cfgimports.TestImportFromConfiguration) ... ok
test_simple_import (ZConfig.tests.test_cfgimports.TestImportFromConfiguration) ... ok
test_bad_datatype (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_loading (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_named_sections (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_reading_config (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_section_contents (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_too_many_keys (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_unknown_key (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_without_clopts (ZConfig.tests.test_cmdline.CommandLineTest) ... ok
test_define (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_define_errors (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_fragment_ident_disallowed (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_include (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_includes_with_defines (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_load_from_abspath (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_load_from_fileobj (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_load_from_relpath (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_simple_gets (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_simple_sections (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_type_errors (ZConfig.tests.test_config.ConfigurationTestCase) ... ok
test_rewriting_key_names (ZConfig.tests.test_cookbook.CookbookTestCase) ... ok
test_byte_size (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_basickey (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_boolean (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_dotted_name (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_dotted_suffix (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_float (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_identifier (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_inet_address (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_inet_binding_address (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_inet_connection_address (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_integer (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_locale (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_port (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_datatype_socket_address (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_existing_directory (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_existing_dirpath (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_existing_file (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_existing_path (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_ipaddr_or_hostname (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_time_interval (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_timedelta (ZConfig.tests.test_datatypes.DatatypeTestCase) ... ok
test_registry_does_not_mask_toplevel_imports (ZConfig.tests.test_datatypes.RegistryTestCase) ... ok
test_file_url_normalization (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_component_twice_1 (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_component_twice_2 (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_errors (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_from_package (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_from_package_extra_directory (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_from_package_with_directory_file (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_from_package_with_file (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_from_package_with_missing_file (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_import_two_components_one_package (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_isPath (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_schema_caching (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_simple_import_using_prefix (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_simple_import_with_cache (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_urlsplit_urlunsplit (ZConfig.tests.test_loader.LoaderTestCase) ... ok
test_nonexistent_file_ioerror (ZConfig.tests.test_loader.TestNonExistentResources) ... ok
test_nonexistent_file_oserror (ZConfig.tests.test_loader.TestNonExistentResources) ... ok
test_zip_import_component_from_config (ZConfig.tests.test_loader.TestResourcesInZip) ... ok
test_zip_import_component_from_schema (ZConfig.tests.test_loader.TestResourcesInZip) ... ok
test_abstracttype_extension (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_abstracttype_extension_errors (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_app_datatype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_app_sectiontype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_key (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_key_bad_schema (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_key_missing (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_key_with_defaults (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_key_with_unkeyed_default (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_keys_with_others (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_multikey_optional (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_multikey_optional_empty (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_multikey_required (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_multikey_with_defaults (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_arbitrary_multikey_with_unkeyed_default (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_bad_handler_maps (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_datatype_casesensitivity (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_datatype_conversion_error (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_deeply_nested_sections (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_default_keys_rechecked_clash_in_derived_sectiontype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_default_keys_rechecked_dont_clash_in_derived_sectiontype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_disallowed_duplicate_attribute (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_duplicate_default_key_checked_in_schema (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_duplicate_section_names (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_empty_sections (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_extends_fragment_failure (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_getrequiredtypes (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_getunusedtypes (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_handler_ordering (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_key_default_element (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_key_required_but_missing (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_keytype_applies_to_default_key (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_keytype_identifier (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_load_abstracttype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_minimal_schema (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multi_extends_datatype_conflict (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multi_extends_explicit_datatype_OK (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multi_extends_explicit_keytype_OK (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multi_extends_implicit_OK (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multi_extends_keytype_conflict (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multikey_required (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multiple_descriptions_is_error (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multisection_required (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_multivalued_keys (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_nested_abstract_sectiontype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_nested_abstract_sectiontype_without_name (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_numeric_section_name (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_reserved_attribute_prefix (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_schema_keytype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_section_required_but_missing (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_section_value_mutation (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_as_schema (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_derived_keytype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_extension (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_extension_errors (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_inherited_datatype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_sectiontype_override_keytype (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_simple (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_simple_anonymous_section (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_simple_anonymous_section_without_name (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_simple_anynamed_section (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_simple_extends (ZConfig.tests.test_schema.SchemaTestCase) ... ok
test_unknown_datatype_name (ZConfig.tests.test_schema.SchemaTestCase) ... ok
Doctest: schemaless.txt ... ok
test_edge_cases (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
test_isname (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
test_non_nesting (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
test_simple_names (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
test_syntax_errors (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
test_undefined_names (ZConfig.tests.test_subst.SubstitutionTestCase) ... ok
[?1034hTraceback (most recent call last):
  File "setup.py", line 47, in <module>
    'zope.testing',
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools/command/test.py", line 119, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.5/site-packages/setuptools/command/test.py", line 101, in with_project_on_sys_path
    func()
  File "/usr/lib/python2.5/site-packages/setuptools/command/test.py", line 130, in run_tests
    testLoader = loader_class()
  File "/usr/lib64/python2.5/unittest.py", line 768, in __init__
    self.runTests()
  File "/usr/lib64/python2.5/unittest.py", line 805, in runTests
    result = self.testRunner.run(self.test)
  File "/usr/lib64/python2.5/unittest.py", line 705, in run
    test(result)
  File "/usr/lib64/python2.5/unittest.py", line 437, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib64/python2.5/unittest.py", line 433, in run
    test(result)
  File "/usr/lib64/python2.5/unittest.py", line 437, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib64/python2.5/unittest.py", line 433, in run
    test(result)
  File "/usr/lib64/python2.5/unittest.py", line 281, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib64/python2.5/unittest.py", line 247, in run
    result.startTest(self)
  File "/usr/lib64/python2.5/unittest.py", line 649, in startTest
    self.stream.write(self.getDescription(test))
  File "/usr/lib64/python2.5/unittest.py", line 642, in getDescription
    return test.shortDescription() or str(test)
  File "/usr/lib64/python2.5/unittest.py", line 232, in shortDescription
    doc = self._testMethodDoc
AttributeError: 'StartUpFailure' object has no attribute '_testMethodDoc'


More information about the Zope-Dev mailing list