From db05ec0277f52a6e0ed152232d8fce036436c5c4 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 29 Dec 2015 02:15:46 +0800 Subject: [PATCH] test.coredevice.portability.HostVsDeviceCase.test_misc: update. It crashes in a different way now. --- artiq/test/coredevice/portability.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/test/coredevice/portability.py b/artiq/test/coredevice/portability.py index e2b0e99d4..32ba1e74c 100644 --- a/artiq/test/coredevice/portability.py +++ b/artiq/test/coredevice/portability.py @@ -42,10 +42,13 @@ class _Misc(EnvExperiment): self.al = [1, 2, 3, 4, 5] self.list_copy_in = [2*Hz, 10*MHz] + self.half_input = 0 + self.acc = 0 + self.list_copy_out = [] + @kernel def run(self): self.half_input = self.input//2 - self.decimal_fraction = Fraction("1.2") self.acc = 0 for i in range(len(self.al)): self.acc += self.al[i] @@ -190,7 +193,6 @@ class HostVsDeviceCase(ExperimentCase): for f in self.execute, _run_on_host: uut = f(_Misc) self.assertEqual(uut.half_input, 42) - self.assertEqual(uut.decimal_fraction, Fraction("1.2")) self.assertEqual(uut.acc, sum(uut.al)) self.assertEqual(uut.list_copy_in, uut.list_copy_out)