Skip to content

Commit

Permalink
tests: python2 compatitibility. Need mock library to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Berg committed Mar 10, 2015
1 parent db502ec commit c66cc1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified tests/__init__.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion tests/test_gpio.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
from unittest import TestCase
from unittest.mock import mock_open, patch
try:
from unittest.mock import mock_open, patch
except ImportError:
from mock import mock_open, patch
import sys
import os
pjoin = os.path.join
Expand Down

0 comments on commit c66cc1e

Please sign in to comment.