Skip a test unless a database has any of the named features.
(*features)
| 1639 | |
| 1640 | |
| 1641 | def skipUnlessAnyDBFeature(*features): |
| 1642 | """Skip a test unless a database has any of the named features.""" |
| 1643 | return _deferredSkip( |
| 1644 | lambda: not any(getattr(connection.features, feature) for feature in features), |
| 1645 | "Database doesn't support any of the feature(s): %s" % ", ".join(features), |
| 1646 | "skipUnlessAnyDBFeature", |
| 1647 | ) |
| 1648 | |
| 1649 | |
| 1650 | class QuietWSGIRequestHandler(WSGIRequestHandler): |
nothing calls this directly
no test coverage detected