clarify what `strict` means for the `version` test (#48979)

Reference the fact that we use the `StrictVersion` parser instead of `LooseVersion` from `distutils` in this case.
pull/49163/head
Evgeni Golov 6 years ago committed by Alicia Cozine
parent 61e5d04a60
commit 7c61ce153f

@ -84,8 +84,7 @@ The ``version`` test accepts the following operators::
<, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne
This test also accepts a 3rd parameter, ``strict`` which defines if strict version parsing should
be used. The default is ``False``, but this setting as ``True`` uses more strict version parsing::
This test also accepts a 3rd parameter, ``strict`` which defines if strict version parsing as defined by ``distutils.version.StrictVersion`` should be used. The default is ``False`` (using ``distutils.version.LooseVersion``), ``True`` enables strict version parsing::
{{ sample_version_var is version('1.0', operator='lt', strict=True) }}

Loading…
Cancel
Save