def test_exceptions_in_list_comprehensions_stable(self):
        def isPrime(p):
            if p == 900001:
                raise UserWarning("This is an exception")
            x = 2
            while p <= x*x:
                if p%x == 0:
                    return 0
                x=x+1
            return 1

        def f(ct):
            return sum([isPrime(x) for x in xrange(ct)])

        def getATrace(ct):
            with self.create_executor() as fora:
                try:
                    c = fora.submit(f, ct).result().toLocal().result()
                except Exception as e:
                    return e.trace

        t1 = getATrace(1000000)

        file_ = __file__
        if file_[-4:] == ".pyc":
            file_ = __file__[:-1]

        for x in t1:
            self.assertEqual(x['path'][0], os.path.abspath(file_))
        self.assertEqual(t1, getATrace(1000001))
        self.assertEqual(t1, getATrace(1000002))
        self.assertEqual(t1, getATrace(1000003))
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/PurePython/InMemoryExecutorTestCases.py/InMemoryExecutorTestCases.test_exceptions_in_list_comprehensions_stable/swapped operands of `<=`