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

tests: use absolute import for fake_module #31

Merged
merged 1 commit into from
Jul 5, 2017

Conversation

ktdreyer
Copy link
Collaborator

@ktdreyer ktdreyer commented Jul 3, 2017

Prior to this change, Python 3 raised an ImportError on the relative import here. Switch to an absolute import to resolve this.

@@ -2,7 +2,7 @@
from mock import Mock, patch
from py.test import raises
from remoto import connection
import fake_module
import remoto.tests.fake_module as fake_module
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think from . import fake_module might be nicer here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! That works for me. Re-pushed.

Prior to this change, Python 3 raised an ImportError on the relative
import here. Switch to an absolute import to resolve this.
@alfredodeza alfredodeza merged commit faacca9 into alfredodeza:master Jul 5, 2017
@ktdreyer ktdreyer deleted the tests-py3 branch September 3, 2021 17:39
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.

3 participants