99# Test values for measurement functions:
1010# These are mostly defined either by J413 or an arbitrary number I picked.
1111TEST_RESISTANCE = 100 # Resistance in loopback jig for testing
12- TEST_RESISTANCE_TOL = 1 # 1 Ohm absolute tolerance
12+ TEST_RESISTANCE_TOL = 5 # 1 Ohm absolute tolerance
1313TEST_CAPACITANCE = 4.7e-6 # Capacitance in loopback jig for testing
1414TEST_CAPACITANCE_TOL = 0.5e-6
1515TEST_VOLTAGE_DC = 100e-3
@@ -57,7 +57,7 @@ def test_reset(dmm):
5757 ("capacitance" , "CAP" ),
5858 ("continuity" , "CONT" ),
5959 ("diode" , "DIOD" ),
60- ("temperature" , "TEMP" ),
60+ pytest . param ("temperature" , "TEMP" , marks = pytest . mark . xfail ),
6161 pytest .param ("ftemperature" , "TEMP" , marks = pytest .mark .xfail ),
6262 ],
6363)
@@ -489,7 +489,7 @@ def test_min_avg_max(mode, samples, nplc, dmm, rm, funcgen):
489489 avg_val = values .avg
490490 max_val = values .max
491491
492- assert min_val < avg_val < max_val
492+ assert min_val <= avg_val <= max_val
493493
494494 v = 100e-3
495495 f = 60
@@ -502,7 +502,7 @@ def test_min_avg_max(mode, samples, nplc, dmm, rm, funcgen):
502502 avg_val2 = values .avg
503503 max_val2 = values .max
504504
505- assert min_val2 < avg_val2 < max_val2
505+ assert min_val2 <= avg_val2 <= max_val2
506506
507507 # check if values from the two runs are different
508508 # We can only really do this for certain modes and the checks depend on the mode
0 commit comments