Actually the ``pytest`` import already exists below, so just remove this line, and change the line using ``py.test`` to use ``pytest`` instead.