gh-100746: Improve test_named_expressions.py
#116713
Merged
8000
test_named_expressions.py
#116713