[tests/brightness] Fix FileNotFoundError for Python 2.7

This commit is contained in:
Tobias Witek 2017-06-26 19:10:51 +02:00
parent fc912a8fbc
commit d37218ce4a

View file

@ -8,6 +8,11 @@ try:
except ImportError: except ImportError:
from io import StringIO from io import StringIO
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError
import tests.mocks as mocks import tests.mocks as mocks
from bumblebee.config import Config from bumblebee.config import Config