Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pytest_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,11 @@ def disable_odoo_test_retry():
"""
try:
from odoo.tests import BaseCase
if hasattr(BaseCase, "run"):
del BaseCase.run
except ImportError:
del BaseCase.run
except (ImportError, AttributeError):
# Odoo <= 15.0
pass


def _find_manifest_path(collection_path: Path) -> Path:
"""Try to locate an Odoo manifest file in the collection path."""
# check if collection_path is an addon directory
Expand Down