Skip to content

Add py38 job to CI

Administrator requested to merge run-tox-py38-in-CI into master

Commit 4: Update README with python version issue

Commit 3: Fix tests in python3.8 and python2.7

Add future.utils module Update the way tox loads dependencies

  • Problem 1: string.encode(), encodes a string in py27 but also transforms in as binary in py38, so string comparisions fail in py38 tests.

Solution: Encode them and transform them later to native string with bytes_to_native_str method (works with both python2 and python3)

  • Problem 2:
TypeError: '<' not supported between instances of 'InternetProcessTicket' and 'InternetProcessTicket'

Solution: avoid sorting objects. Also, in tests don't compare instances that are expected to "be" equal. Compare instead their content

  • Problem 3:
SyntaxError: Non-ASCII character '\xc3' in file /home/gfunosas/Escriptori/dev/OTRS/otrs-somconnexio/tests/services/test_update_process_ticket_with_MM_error.py on line 19, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Solution: Avoid non utf8 charactes in test_update_process_ticket_with_MM_error.py Also, add empty line at the end of file.

Commit 2: Rename 'test_mm_error_.py' file to 'test_mm_error_article.py'

Commit 1: Add the py38 scenario to tox in !18 (merged) With this MR we execute this scenario in the CI.

Edited by Administrator

Merge request reports

Loading