diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e965b95e42acce88f071c426fdc12598dec07911..30c81bb3acd68de90453e32e214a188550539360 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,6 +64,10 @@ jobs:
         -   name: "Main Script"
             run: |
                 curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
+                # pytest gets angry when 'import pytato.array' may come
+                # from both the project file and the venv. This matters
+                # because of doctest collection.
+                PROJECT_INSTALL_FLAGS="--editable"
                 . ./build-and-test-py-project-within-miniconda.sh
 
     examples:
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ffa1aeb630b4a8ba0385393297c7cd8624f25b46..56b5bf0a01b44c1b472af596e5e024f1a2ce0265 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,10 @@ Python 3 POCL:
   - export PYOPENCL_TEST=portable:pthread
   - export EXTRA_INSTALL="pyopencl mpi4py jax[cpu]"
   - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
+  # pytest gets angry when 'import pytato.array' may come
+  # from both the project file and the venv. This matters
+  # because of doctest collection.
+  - 'PROJECT_INSTALL_FLAGS="--editable"'
   - ". ./build-and-test-py-project.sh"
   tags:
   - python3