From 1217aa1f60d125f19797837063a418eea4bdfd1a Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Sun, 5 Mar 2017 10:39:08 +0100 Subject: [PATCH] [tests/battery] Try to fix failing CI tests --- tests/modules/test_battery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/test_battery.py b/tests/modules/test_battery.py index 6f31b16..2963318 100644 --- a/tests/modules/test_battery.py +++ b/tests/modules/test_battery.py @@ -18,7 +18,7 @@ class TestBatteryModule(unittest.TestCase): def setUp(self): self._stdout = mock.patch("sys.stdout", new_callable=StringIO) self._exists = mock.patch("bumblebee.modules.battery.os.path.exists") - self._open = mock.patch("bumblebee.modules.battery.open") + self._open = mock.patch("bumblebee.modules.battery.open", create=True) self.stdout = self._stdout.start() self.exists = self._exists.start()