Skip to content
Snippets Groups Projects
Commit 07510967 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix, test Python 2.6

parent 957258ca
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,18 @@ Python 2.7 AMD CPU:
- amd-cl-cpu
except:
- tags
Python 2.6 AMD CPU:
script:
- export PY_EXE=python2.6
- export PYOPENCL_TEST=amd:pu
- export EXTRA_INSTALL="numpy mako"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
tags:
- python2.6
- amd-cl-cpu
except:
- tags
Python 3.4 AMD CPU:
script:
- export PY_EXE=python3.4
......
......@@ -60,8 +60,9 @@ class ToCountMap:
def __mul__(self, other):
if isinstance(other, isl.PwQPolynomial):
return ToCountMap({index: self.dict[index]*other
for index in self.dict.keys()})
return ToCountMap(dict(
(index, self.dict[index]*other)
for index in self.dict.keys()))
else:
raise ValueError("ToCountMap: Attempted to multiply "
"ToCountMap by {} {}."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment