Ben Bass avatar Ben Bass committed cfc0152

fix tests under Py3 after moving tests package with new-style relative imports

Comments (0)

Files changed (3)

tests/test_bitbang.py

 to be attached.
 """
 
-from test_common import (LoopDevice, CallCheckMixin, unittest)
+from .test_common import (LoopDevice, CallCheckMixin, unittest)
 from pylibftdi.bitbang import BitBangDevice
 from pylibftdi import FtdiError
 

tests/test_bus.py

+"""
+pylibftdi - python wrapper for libftdi
 
-from test_common import unittest
+Copyright (c) 2010-2012 Ben Bass <benbass@codedstructure.net>
+See LICENSE file for details and (absence of) warranty
+
+pylibftdi: http://bitbucket.org/codedstructure/pylibftdi
+
+This module contains some basic tests for the higher-level
+functionality without requiring an actual hardware device
+to be attached.
+"""
+
+from .test_common import unittest
 from pylibftdi.util import Bus
 
 

tests/test_driver.py

 to be attached.
 """
 
-from test_common import (LoopDevice, Device, CallCheckMixin, unittest)
+from .test_common import (LoopDevice, Device, CallCheckMixin, unittest)
 
 # and now some test cases...
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.