]> git-server-git.apps.pok.os.sepia.ceph.com Git - remoto.git/commitdiff
tests: use absolute import for fake_module
authorKen Dreyer <kdreyer@redhat.com>
Mon, 3 Jul 2017 21:37:00 +0000 (15:37 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Mon, 3 Jul 2017 21:47:34 +0000 (15:47 -0600)
Prior to this change, Python 3 raised an ImportError on the relative
import here. Switch to an absolute import to resolve this.

remoto/tests/test_connection.py

index ccd78ed927fb597c41c5d1414dc72167f091d092..4332d443672bd7fe0b92001d8e9c990dbda01fd1 100644 (file)
@@ -2,7 +2,7 @@ import sys
 from mock import Mock, patch
 from py.test import raises
 from remoto import connection
-import fake_module
+from . import fake_module
 
 
 class FakeSocket(object):