diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8e3441731f7e21512b45dd83f76658ff504c2e77..c86e19fdb3627bea50cd0c8eb92b289a0e6a1a13 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
         -
             uses: actions/setup-python@v1
             with:
-                python-version: '3.x' 
+                python-version: '3.x'
         -   name: "Main Script"
             run: |
                 curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
@@ -32,7 +32,7 @@ jobs:
         -
             uses: actions/setup-python@v1
             with:
-                python-version: '3.x' 
+                python-version: '3.x'
         -   name: "Main Script"
             run: |
                 EXTRA_INSTALL="numpy sympy symengine scipy pexpect"
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f44ac2f9c6f9f047311e323026c0083b674d4bc4..be356b1cb32eb6d993064a46480ab7f71ae287a2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,11 @@
 Python 3:
-  script:
-  - PY_EXE=python3
-  - EXTRA_INSTALL="numpy sympy pexpect"
-  - 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"
+  script: |
+    PY_EXE=python3
+    # pytest tries to import this, but it doesn't find symengine
+    rm pymbolic/interop/symengine.py
+    EXTRA_INSTALL="numpy sympy pexpect"
+    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:
   - python3
   - maxima