commit | 0c95662f54290f53f39912be53ffe4d4187503a0 | [log] [tgz] |
---|---|---|
author | Thomas Preud'homme <thomasp@graphcore.ai> | Thu Apr 30 17:49:59 2020 +0100 |
committer | Thomas Preud'homme <thomasp@graphcore.ai> | Thu Apr 30 18:23:24 2020 +0100 |
tree | 73be1f052da4c5e1034f1192eccc4ee2b76206db | |
parent | 4e90ce1fa814a41f41979f633c34bedfac5bdfe4 [diff] |
Fix dynamic import of http.client Summary: Contrary to __import__, importlib.import_module returns the specified package or module while __import__ returns the top-level package or module and is thus what http would be bound to when importing http.client. This commit fixes the import of http.client so that the http module is bound to the http variable. Without this change LNT crashes when receiving an HTTP response not between 200 and 400 (not included). Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls, PrzemekWirkus Reviewed By: cmatthews Subscribers: llvm-commits, MatzeB, leandron, PrzemekWirkus Differential Revision: https://reviews.llvm.org/D79183
This directory and its subdirectories contain the LLVM nightly test infrastructure. This is technically version “4.0” of the LLVM nightly test architecture.
The infrastructure has the following layout:
$ROOT/lnt - Top-level Python ‘lnt’ module
$ROOT/lnt/server/db - Database schema, utilities, and examples of the LNT plist format.
$ROOT/docs - Sphinx documentation for LNT.
$ROOT/tests - Tests for the infrastructure.
For more information, see the web documentation, or docs/.