Opened 10 years ago

Closed 10 years ago

#23653 closed Bug (fixed)

Test failures Windows 7

Reported by: patclaffey Owned by: Tim Graham
Component: Testing framework Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Running test under Windows 7 Professional Service Pack 1 and got error
Running python 2.7

======================================================================
FAIL: test_custom_logging (logging_tests.tests.SettingsCustomLoggingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\software\git\django\tests\logging_tests\tests.py", line 449, in test_
custom_logging
    self.assertNoOutput(err)
  File "D:\software\git\django\tests\admin_scripts\tests.py", line 184, in asser
tNoOutput
    self.assertEqual(len(stream), 0, "Stream should be empty: actually contains
'%s'" % stream)
AssertionError: Stream should be empty: actually contains 'Traceback (most recen
t call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "D:\software\git\django\django\core\management\__init__.py", line 336, in
 execute_from_command_line
    utility.execute()
  File "D:\software\git\django\django\core\management\__init__.py", line 310, in
 execute
    django.setup()
  File "D:\software\git\django\django\__init__.py", line 22, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "D:\software\git\django\django\utils\log.py", line 87, in configure_loggi
ng
    logging_config_func(logging_settings)
  File "D:\software\python\lib\logging\config.py", line 70, in fileConfig
    formatters = _create_formatters(cp)
  File "D:\software\python\lib\logging\config.py", line 106, in _create_formatte
rs
    flist = cp.get("formatters", "keys")
  File "D:\software\python\lib\ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'

Change History (2)

comment:1 by Tim Graham, 10 years ago

Owner: changed from nobody to Tim Graham
Status: newassigned
Triage Stage: UnreviewedAccepted

Oops, tempfile.NamedTemporaryFile isn't usable on Windows.

comment:2 by Tim Graham <timograham@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 494cd857c897dc4051193abc10d181fa51de4966:

Fixed #23653 -- Fixed Windows failure of a logging test added in refs #23569.

Note: See TracTickets for help on using tickets.
Back to Top