Changeset 35c304c in trunk


Ignore:
Timestamp:
2020-11-03T15:04:16Z (5 years ago)
Author:
Itamar Turner-Trauring <itamar@…>
Branches:
master
Children:
e3a0f61
Parents:
92a4a5a
Message:

Workaround for Eliot flaw.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/eliotutil.py

    r92a4a5a r35c304c  
    77# `exceptions.TypeError: <class 'future.types.newstr.newstr'> is not JSON-encodeable`
    88from past.builtins import unicode as str
     9from future.utils import PY3
    910
    1011__all__ = [
     
    165166    @eliot_logged_test
    166167    def run(self, result=None):
     168        # Workaround for https://github.com/itamarst/eliot/issues/456
     169        if PY3:
     170            self.case.eliot_logger._validate_message = lambda *args, **kwargs: None
    167171        return self._run_tests_with_factory(
    168172            self.case,
Note: See TracChangeset for help on using the changeset viewer.