Skip to content

Commit 955c5da

Browse files
authored
Merge pull request #7960 from radarhere/selftest
2 parents 33a73b5 + 3a92d4a commit 955c5da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

selftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def testimage() -> None:
139139
In 1.1.6, you can use the ImageMath module to do image
140140
calculations.
141141
142-
>>> im = ImageMath.eval("float(im + 20)", im=im.convert("L"))
142+
>>> im = ImageMath.lambda_eval( \
143+
lambda args: args["float"](args["im"] + 20), im=im.convert("L") \
144+
)
143145
>>> im.mode, im.size
144146
('F', (128, 128))
145147

0 commit comments

Comments
 (0)