[MLIR] Rename test/python/dialects/math.py -> math_dialect.py
authorUday Bondhugula <uday@polymagelabs.com>
Thu, 25 Nov 2021 03:26:19 +0000 (08:56 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Thu, 25 Nov 2021 04:21:49 +0000 (09:51 +0530)
commit25d173499effd978435e433196003f964293f8d9
treeb1198e06007e044fc395c17304f5c6f1c1607387
parentee1bf186723abb933b2c337e589c5958167f3cbe
[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
mlir/test/python/dialects/math_dialect.py [moved from mlir/test/python/dialects/math.py with 83% similarity]