[tests/brightness] Fix FileNotFoundError for Python 2.7
This commit is contained in:
parent
fc912a8fbc
commit
d37218ce4a
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ try:
|
|||
except ImportError:
|
||||
from io import StringIO
|
||||
|
||||
try:
|
||||
FileNotFoundError
|
||||
except NameError:
|
||||
FileNotFoundError = IOError
|
||||
|
||||
import tests.mocks as mocks
|
||||
|
||||
from bumblebee.config import Config
|
||||
|
|
Loading…
Reference in a new issue