Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_facade failing for Py3 by switching to Mocks #409

Merged
merged 2 commits into from
Aug 6, 2018
Merged

Fix test_facade failing for Py3 by switching to Mocks #409

merged 2 commits into from
Aug 6, 2018

Conversation

KeyWeeUsr
Copy link
Contributor

The previous approach used dynamically created files and imported each Dummy class from separate platform. That didn't work for OSX + Py3 and apparently had problems even on GNU/Linux + Py3 sometimes. Somehow it seems to me qua-non's idea about relative imports had something to do with it because I called reload() in the test.

I switched to dynamically created modules and mocked __import__ instead, which seems to work + simplified the tests for each platform into a single one.

@dessant dessant requested review from dessant and removed request for akshayaurora and dessant August 6, 2018 22:28
Copy link
Contributor

@dessant dessant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks ok from a quick read, I have not tested the code.

@dessant dessant merged commit e60756d into kivy:master Aug 6, 2018
@KeyWeeUsr KeyWeeUsr deleted the fix_test_facades branch August 14, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants