Remove all redis.* modules from sys.modules to allow fresh import.
()
| 837 | |
| 838 | |
| 839 | def _clear_redis_modules() -> None: |
| 840 | """Remove all redis.* modules from sys.modules to allow fresh import.""" |
| 841 | to_remove = [key for key in sys.modules if key == "redis" or key.startswith("redis.")] |
| 842 | for key in to_remove: |
| 843 | del sys.modules[key] |
| 844 | |
| 845 | |
| 846 | def run_baseline_scenario(tag: str, config: LoadGeneratorConfig) -> Optional[BenchmarkResult]: |
no outgoing calls
no test coverage detected