Skip to content

Comments

Fix python3 issue in the integration test#540

Closed
sumit-bose wants to merge 1 commit intoSSSD:masterfrom
sumit-bose:intg_python3
Closed

Fix python3 issue in the integration test#540
sumit-bose wants to merge 1 commit intoSSSD:masterfrom
sumit-bose:intg_python3

Conversation

@sumit-bose
Copy link
Contributor

With this patch the integration tests can run with python3.

To test make sure $(PYTHON2) in src/tests/intg/Makefile.am is replaced with
$(PYHTON3). Additionally the required python3 modules like e.g. python3-pytest,
python3-pyldap or python3-ldb must st installed.

At startup pytest will print a status line like

platform linux -- Python 3.5.4, pytest-2.9.2, py-1.4.34, pluggy-0.3.1 -- /usr/bin/python3

where you can check if python3 is really used for testing.

With python3 comparisons between byte literals and strings will fail. To
make sure assertions will pass the search results must be converted to
(utf-8) strings first.

Resolves https://pagure.io/SSSD/sssd/issue/3666
@jhrozek
Copy link
Contributor

jhrozek commented Mar 27, 2018

@jhrozek jhrozek self-assigned this Mar 27, 2018
@jhrozek
Copy link
Contributor

jhrozek commented Mar 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants