[template] fixed test failure introduted from #8585
merged branch bronze1man/PR-fixed-test-failure (PR #8591)

This PR was merged into the master branch.

Discussion
----------

[templating] fixed test failure introduted from #8585

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8585
| License       | MIT
| Doc PR        | n/a

Commits
-------

4b7c3b9 [template] fixed test failure introduted from #8585