enthought / envisage

Envisage is a Python-based framework for building applications whose functionalities can be extended by adding "plug-ins".
http://docs.enthought.com/envisage/
Other
82 stars 26 forks source link

Use importlib.resources to locate test data #439

Open mdickinson opened 3 years ago

mdickinson commented 3 years ago

Some of the unit tests are currently using __file__ to locate test data. We should use importlib.resources instead.

mdickinson commented 1 year ago

Currently, using importlib.resources is unpleasant if one also wants to remain compatible with Python versions earlier than 3.9: in Python 3.11, essentially all of the pre-3.9 version of importlib.resources is deprecated. I suggest we close this issue for now. We can revisit to use importlib.resources once Python 3.8 and older are no longer a concern.

We could use pkg_resources in the interim.