diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index 5c412047c..f88244468 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -525,7 +525,6 @@ class Testdir(object): def make_hook_recorder(self, pluginmanager): """Create a new :py:class:`HookRecorder` for a PluginManager.""" - assert not hasattr(pluginmanager, "reprec") pluginmanager.reprec = reprec = HookRecorder(pluginmanager) self.request.addfinalizer(reprec.finish_recording) return reprec