File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 22
22
- name : Install Python
23
23
uses : actions/setup-python@v4
24
24
with :
25
- python-version : " 3.7 "
25
+ python-version : " 3.12 "
26
26
27
27
- name : Install Python Dependencies
28
28
run : pip install flake8
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build :
15
15
name : " Docs CI"
16
- runs-on : ubuntu-latest
16
+ runs-on : ubuntu-22.04
17
17
18
18
steps :
19
19
- name : Checkout Source
Original file line number Diff line number Diff line change 62
62
[flake8]
63
63
max-line-length = 80
64
64
extend-ignore =
65
- F401 F403 F405 # Allow from module import *
66
- E251 # Allow call(param = value)
67
- E301 E302 E303 E305 # Allow any number of blank lines
65
+ # Allow from module import *
66
+ F401 F403 F405
67
+ # Allow call(param = value)
68
+ E251
69
+ # Allow any number of blank lines
70
+ E301 E302 E303 E305
68
71
69
72
[tool:pytest]
70
73
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
Original file line number Diff line number Diff line change @@ -324,7 +324,6 @@ def ClearRecords():
324
324
325
325
SetSimpleRecordNames (None , ':' )
326
326
327
- SetDeviceName = SetPrefix
328
327
def SetDeviceName (name ):
329
328
SetPrefix (name )
330
329
Original file line number Diff line number Diff line change @@ -294,15 +294,15 @@ def record_value_asserts(
294
294
# This function is shared between functions that may pass in either a
295
295
# native Python type, or the value returned from p4p, which must be
296
296
# unwrapped
297
- if type (actual_value ) == p4p .nt .enum .ntenum :
297
+ if type (actual_value ) is p4p .nt .enum .ntenum :
298
298
actual_val_type = type (actual_value .raw ["value" ].get ("index" ))
299
299
elif isinstance (actual_value , p4p .nt .scalar .ntwrappercommon ):
300
300
actual_val_type = type (actual_value .raw ["value" ])
301
301
else :
302
302
actual_val_type = type (actual_value )
303
303
304
304
try :
305
- if type (expected_value ) == float and isnan (expected_value ):
305
+ if type (expected_value ) is float and isnan (expected_value ):
306
306
assert isnan (actual_value ) # NaN != Nan, so needs special case
307
307
elif creation_func in [builder .WaveformOut , builder .WaveformIn ]:
308
308
assert numpy .array_equal (actual_value , expected_value )
You can’t perform that action at this time.
0 commit comments