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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-07 08:31:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-07 17:07:19 +0300
commit7ca5ba14b5638eeff93d00996c00cb153a35d062 (patch)
tree1345eb1e760f4c960473490d9189140d394a746a /tests/python/bl_pyapi_mathutils.py
parent51bf1680bd114cd1886f301681aa3708145a2880 (diff)
Cleanup: use keywords for unit tests
Prepare for function calls to be keyword only.
Diffstat (limited to 'tests/python/bl_pyapi_mathutils.py')
-rw-r--r--tests/python/bl_pyapi_mathutils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/python/bl_pyapi_mathutils.py b/tests/python/bl_pyapi_mathutils.py
index 914b1689a5c..c3a22be421a 100644
--- a/tests/python/bl_pyapi_mathutils.py
+++ b/tests/python/bl_pyapi_mathutils.py
@@ -463,20 +463,20 @@ class KDTreeTesting(unittest.TestCase):
ret_regular = k_odd.find(co)
self.assertEqual(ret_regular[1] % 2, 1)
- ret_filter = k_all.find(co, lambda i: (i % 2) == 1)
+ ret_filter = k_all.find(co, filter=lambda i: (i % 2) == 1)
self.assertAlmostEqualVector(ret_regular, ret_filter)
ret_regular = k_evn.find(co)
self.assertEqual(ret_regular[1] % 2, 0)
- ret_filter = k_all.find(co, lambda i: (i % 2) == 0)
+ ret_filter = k_all.find(co, filter=lambda i: (i % 2) == 0)
self.assertAlmostEqualVector(ret_regular, ret_filter)
# filter out all values (search odd tree for even values and the reverse)
co = (0,) * 3
- ret_filter = k_odd.find(co, lambda i: (i % 2) == 0)
+ ret_filter = k_odd.find(co, filter=lambda i: (i % 2) == 0)
self.assertEqual(ret_filter[1], None)
- ret_filter = k_evn.find(co, lambda i: (i % 2) == 1)
+ ret_filter = k_evn.find(co, filter=lambda i: (i % 2) == 1)
self.assertEqual(ret_filter[1], None)
def test_kdtree_invalid_size(self):