Private
Public Access
2
0

tests: make tests work on python3

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-08-11 11:24:22 +01:00
parent 4acb0e5562
commit 308289497e
3 changed files with 11 additions and 5 deletions

View File

@@ -22,13 +22,15 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import unittest as u
from __future__ import print_function
import mraa as m
import unittest as u
class GeneralChecks(u.TestCase):
def test_mraa_version(self):
self.version = m.getVersion()
print "Version is: " + self.version
print("Version is: " + self.version)
self.assertIsNotNone(self.version)
if __name__ == "__main__":