1. 24 Apr, 2024 8 commits
  2. 23 Apr, 2024 5 commits
  3. 22 Apr, 2024 5 commits
    • Carlos Ramos Carreño's avatar
      Normalize e-mail messages for comparison. · 2348985c
      Carlos Ramos Carreño authored
      The e-mail messages are normalized in a way compatible with both
      Python 2 and Python 3.
      
      In Python 2, the previous version added a `unixfrom`, which contains
      the date, making the tests fail when there is a change of one
      second in the clock between generating the first and the second
      message.
      Moreover, the second message contained a previous `unixfrom`.
      This has been solved by removing `unixfrom` in the normalized string.
      
      In Python 3, messages had an inconsistent folding, due to
      https://github.com/python/cpython/issues/72649 .
      This has been solved by manual unfolding (using a regex substitution)
      and by outputing normalized strings without folding (setting
      `maxheaderlen=0`, which means no maximum line lenght).
      
      With these changes, the normalized string can be compared in both
      versions without problems.
      2348985c
    • Carlos Ramos Carreño's avatar
      Fix encode/decode. · 40fd5c8e
      Carlos Ramos Carreño authored
      40fd5c8e
    • Carlos Ramos Carreño's avatar
      Fix erp5_web_service tests in Python 2. · 6e16d7a6
      Carlos Ramos Carreño authored
      The if in this change was not being reached in Python 2, because in
      this version the repr includes a comma after the message. I have
      chosen instead to do the same that was being done before commit
      9f4cf295, but changing `message`
      (which does not exist in Python 3) to `args[0]` which can be used in
      both Python versions.
      6e16d7a6
    • Carlos Ramos Carreño's avatar
      Fix CMFCategory test in Python 2. · 905085b7
      Carlos Ramos Carreño authored
      - The warnings are compared in a set instead of a list, as we do
      not care of how many times is the warning raised.
      - The warning filter is added inside the context manager, as
      recommended in
      https://docs.python.org/2.7/library/warnings.html#testing-warnings .
      - We change the `clear` method of list, using `del` instead, as the
      `clear` method was added on Python 3.3.
      905085b7
    • Carlos Ramos Carreño's avatar
      Fix the test for WebDAV. · 9e4d9017
      Carlos Ramos Carreño authored
      Fixes an assert due to a unicode/bytes mismatch.
      9e4d9017
  4. 21 Apr, 2024 22 commits