diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index a79a52157..62d8dbb6a 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -1,6 +1,5 @@ """Rewrite assertion AST to produce nice error messages""" import ast -import astor import errno import importlib.machinery import importlib.util @@ -11,6 +10,7 @@ import struct import sys import types +import astor import atomicwrites from _pytest._io.saferepr import saferepr