Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Marc Hartmayer dad28e8b4a tests: Add a test case that verifies behavior when the log record factory is modified
The test currently fails with the following error:

  $ PYTHONPATH=$(pwd)/tests:$PYTHONPATH python3 -m unittest -v log_handler_test
  ...
  test_logrecordfactory (log_handler_test.LogRecordFactoryTest.test_logrecordfactory) ... --- Logging error ---
  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 464, in format
      return self._format(record)
             ^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 460, in _format
      return self._fmt % values
             ~~~~~~~~~~^~~~~~~~
  KeyError: 'custom_attribute'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.12/logging/__init__.py", line 1160, in emit
      msg = self.format(record)
            ^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 999, in format
      return fmt.format(record)
             ^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 999, in format
      return fmt.format(record)
             ^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 706, in format
      s = self.formatMessage(record)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 675, in formatMessage
      return self._style.format(record)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/logging/__init__.py", line 466, in format
      raise ValueError('Formatting field not found in record: %s' % e)
  ValueError: Formatting field not found in record: 'custom_attribute'

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
1 month ago
.ci mitogen: Fix non-blocking IO errors in first stage of bootstrap 3 months ago
.github Python 3.14 support 3 months ago
ansible_mitogen ansible_mitogen: De-duplicate sys.path manipulations by Ansible plugins 1 month ago
docs Declare license as SPDX identifier in metadata 1 month ago
examples Remove get_password_hash, unused 1 year ago
mitogen Correct mitogen.imports.* licenses 1 month ago
scripts add Python3 compatibility 2 years ago
tests tests: Add a test case that verifies behavior when the log record factory is modified 1 month ago
.gitignore chore: Ignore locally installed collections, dummy modules, etc 6 months ago
.lgtm.yml Whoops, merge together lgtm.yml and .lgtm.yml 6 years ago
LICENSE Bump copyright year and use generic author name (testing Travis) 5 years ago
MANIFEST.in setup.py: include LICENSE; closes #538. 7 years ago
README.md docs: shields.io badges for PyPI version & supported Python versions 1 year ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 7 years ago
netlify.toml docs: Attempt to configure Netlify build of mitogen.networkgenomics.com 11 months ago
preamble_size.py preamble_size: Fix variability of command & preamble(?) size 3 months ago
run_tests tests: Remove unittest2, use stdlib unittest 4 years ago
setup.cfg Keep comatibility with `setuptools` tagging wheels with `py2.py3` 6 months ago
setup.py Declare license as SPDX identifier in metadata 1 month ago
tox.ini Python 3.14 support 3 months ago

README.md