[all-commits] [llvm/llvm-project] 25d173: [MLIR] Rename test/python/dialects/math.py -> math...
Uday Bondhugula via All-commits
all-commits at lists.llvm.org
Wed Nov 24 20:22:30 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 25d173499effd978435e433196003f964293f8d9
https://github.com/llvm/llvm-project/commit/25d173499effd978435e433196003f964293f8d9
Author: Uday Bondhugula <uday at polymagelabs.com>
Date: 2021-11-25 (Thu, 25 Nov 2021)
Changed paths:
R mlir/test/python/dialects/math.py
A mlir/test/python/dialects/math_dialect.py
Log Message:
-----------
[MLIR] Rename test/python/dialects/math.py -> math_dialect.py
Rename test/python/dialects/math.py -> math_dialect.py to avoid a
collision with a Python standard package of the same name. These test
scripts are run by path and are not part of a package. Python apparently
implicitly adds the containing directory to its PYTHONPATH. As such,
test scripts with common names run the risk of conflicting with global
names and resolution of an import for the latter happens to the former.
Differential Revision: https://reviews.llvm.org/D114568
More information about the All-commits
mailing list