From d37218ce4a30d80dcdc48e150cfed0d2f974747a Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Mon, 26 Jun 2017 19:10:51 +0200 Subject: [PATCH] [tests/brightness] Fix FileNotFoundError for Python 2.7 --- tests/modules/test_brightness.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/modules/test_brightness.py b/tests/modules/test_brightness.py index 5582bcc..9b91d8f 100644 --- a/tests/modules/test_brightness.py +++ b/tests/modules/test_brightness.py @@ -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