@@ -42,10 +42,10 @@ class IndicatorsTestCase(AutopilotTestCase):
4242 self.pointing_device = Pointer(self.input_device_class.create())
4343 super(IndicatorsTestCase, self).setUp()
4444 if grid_size != "0":
45− os.environ['GRID_UNIT_PX'] = grid_size
45+ self.patch_environment("GRID_UNIT_PX", str(grid_size))
4646 self.grid_size = int(grid_size)
4747 else:
48− self.grid_size = int(os.environ['GRID_UNIT_PX'])
48+ self.grid_size = int(os.getenv('GRID_UNIT_PX'))
4949
5050 if os.path.realpath(__file__).startswith("/usr/"):
5151 self.launch_test_installed(geometry)