-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
DependenciesRequired and optional dependenciesRequired and optional dependenciesEnhancementTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite
Description
When a method depends on an optional dependency, we want to test behavior that relies on it being installed & not installed. Right now, we have to add skips for both cases
- Test behavior when installed, skip if not installed
- Test behavior when not installed, skip if installed
Ideally, we would always test the second, by simulating a missing dependency. Unfortunately, python's caching of imports makes this somewhat difficult to achieve. Hopefully it doesn't require writing a custom importer: https://docs.python.org/3/library/importlib.html#introduction
Metadata
Metadata
Assignees
Labels
DependenciesRequired and optional dependenciesRequired and optional dependenciesEnhancementTestingpandas testing functions or related to the test suitepandas testing functions or related to the test suite