Skip to content

Commit a45e10d

Browse files
committed
Python: Slight rewrite of numpy test
To use positional argument for allow_pickle
1 parent 56d99fb commit a45e10d

File tree

1 file changed

+2
-2
lines changed
  • python/ql/test/library-tests/frameworks/numpy

1 file changed

+2
-2
lines changed

python/ql/test/library-tests/frameworks/numpy/Decoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
numpy.load(file_) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy
44
numpy.load(filename=file_) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy
5-
numpy.load(file_, allow_pickle=True) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy decodeMayExecuteInput
6-
numpy.load(filename=file_, allow_pickle=True) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy decodeMayExecuteInput
5+
numpy.load(file_, allow_pickle=True) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy decodeFormat=pickle decodeMayExecuteInput
6+
numpy.load(file_, None, True) # $ decodeInput=file_ decodeOutput=numpy.load(..) decodeFormat=numpy decodeFormat=pickle decodeMayExecuteInput

0 commit comments

Comments
 (0)