Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-07 08:30:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-07 17:07:19 +0300
commit51bf1680bd114cd1886f301681aa3708145a2880 (patch)
tree409889c3d3f1dbc2afaf19d894acf6cc610d4a60 /tests
parent91d3a548696753ef1b664acbeab1dba9cc7ab1af (diff)
Cleanup: quiet warning accessing deprecated attribute in bl_test
Diffstat (limited to 'tests')
-rw-r--r--tests/python/bl_test.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/python/bl_test.py b/tests/python/bl_test.py
index 6315ffbfa9d..110b4238f6c 100644
--- a/tests/python/bl_test.py
+++ b/tests/python/bl_test.py
@@ -32,9 +32,18 @@ def replace_bpy_app_version():
app = bpy.app
app_fake = type(bpy)("bpy.app")
+ app_attr_exclude = {
+ # This causes a noisy warning every time.
+ "binary_path_python",
+ }
+
for attr in dir(app):
- if not attr.startswith("_"):
- setattr(app_fake, attr, getattr(app, attr))
+ if attr.startswith("_"):
+ continue
+ if attr in app_attr_exclude:
+ continue
+
+ setattr(app_fake, attr, getattr(app, attr))
app_fake.version = 0, 0, 0
app_fake.version_string = "0.00 (sub 0)"