[tests/battery] Try to fix failing CI tests

This commit is contained in:
Tobi-wan Kenobi 2017-03-05 10:39:08 +01:00
parent e4f728327e
commit 1217aa1f60

View file

@ -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()