Skip to content

Commit

Permalink
Merge pull request camptocamp#52 from sbidoul/patch-1
Browse files Browse the repository at this point in the history
Avoid currentThread deprecation warning in python 3.10
  • Loading branch information
simahawk committed Oct 3, 2022
2 parents d4e8895 + a251f2a commit f7af8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def load_registry():
# And also give wrong timing indications.
# Finally we enable `testing` flag on current thread
# since Odoo sets it when loading test suites.
threading.currentThread().testing = True
threading.current_thread().testing = True
odoo.registry(odoo.tests.common.get_db_name())


Expand Down

0 comments on commit f7af8b8

Please sign in to comment.