Cleanup: Fix typos in source code

Source typos corrected

Reviewed By: Blendify

Differential Revision: https://developer.blender.org/D13462
This commit is contained in:
luzpaz
2021-12-06 22:22:56 -05:00
committed by Aaron Carlisle
parent 50fb0fd636
commit 92dae5775f
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ def blender_extract_info(blender_bin: str) -> Dict[str, str]:
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
).stdout.decode(encoding="utf-8") ).stdout.decode(encoding="utf-8")
blender_version_ouput = subprocess.run( blender_version_output = subprocess.run(
[blender_bin, "--version"], [blender_bin, "--version"],
env=blender_env, env=blender_env,
check=True, check=True,
@@ -73,7 +73,7 @@ def blender_extract_info(blender_bin: str) -> Dict[str, str]:
# check for each lines prefix to ensure these aren't included. # check for each lines prefix to ensure these aren't included.
blender_version = "" blender_version = ""
blender_date = "" blender_date = ""
for l in blender_version_ouput.split("\n"): for l in blender_version_output.split("\n"):
if l.startswith("Blender "): if l.startswith("Blender "):
# Remove 'Blender' prefix. # Remove 'Blender' prefix.
blender_version = l.split(" ", 1)[1].strip() blender_version = l.split(" ", 1)[1].strip()

View File

@@ -71,7 +71,7 @@ def expect_exception_or_abort(*, fn, ex):
print_fail_msg_and_exit("test failed") print_fail_msg_and_exit("test failed")
def expect_ouput_or_abort(*, fn, match_stderr=None, match_stdout=None): def expect_output_or_abort(*, fn, match_stderr=None, match_stdout=None):
stdout, stderr = io.StringIO(), io.StringIO() stdout, stderr = io.StringIO(), io.StringIO()
@@ -278,7 +278,7 @@ def test_restrictions1():
expect_false_or_abort(not hasattr(op, "id_prop")) expect_false_or_abort(not hasattr(op, "id_prop"))
bpy.utils.register_class(TEST_PT_DatablockProp) bpy.utils.register_class(TEST_PT_DatablockProp)
expect_ouput_or_abort( expect_output_or_abort(
fn=lambda: bpy.utils.register_class(TEST_Op), fn=lambda: bpy.utils.register_class(TEST_Op),
match_stderr="^ValueError: bpy_struct \"SCENE_OT_test_op\" registration error:", match_stderr="^ValueError: bpy_struct \"SCENE_OT_test_op\" registration error:",
) )