File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ def test_that_only_runs_on_eos_on_7130(dut):
157157```
158158
159159OS decorators accept the following keywords:
160- - min_version
161- - min_change_number
160+ - min_version (string)
161+ - min_change_number (int)
162162
163163If both kwargs are specified, min_change_number takes precedence.
164164``` python
165- @pytest.mark.eos (min_version = " 4.30.0" , min_change_number = " 3452345" )
165+ @pytest.mark.eos (min_version = " 4.30.0" , min_change_number = 3452345 )
166166@pytest.mark.skip_device_type (" DCS-7130.*" )
167167def test_that_only_runs_on_eos_on_7130 (dut ):
168168 logging.info(" Must be EOS on 7130!" )
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ def parse_version(v):
9191
9292def version_skipper (found , expected ):
9393 try :
94- found = version .Version (found )
95- expected = version .Version (expected )
94+ found = version .Version (str ( found ) )
95+ expected = version .Version (str ( expected ) )
9696 if found < expected :
9797 pytest .skip (f"min_version { expected } not satisfied: { found } " )
9898 except version .InvalidVersion :
You can’t perform that action at this time.
0 commit comments