summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix merge errorRohit Goswami2023-05-121-13/+0
|
* TST: Add a test for gh-23533Rohit Goswami2023-05-122-0/+32
|
* Merge branch 'main' into f2pyFuncFix_23598Sebastian Berg2023-04-263-34/+28
|\
| * TST: Remove crackfortran.nameargspattern time test that failed randomly (#23662)molsonkiko2023-04-251-25/+15
| | | | | | | | | | | | also made the threshold for rejecting a regex as too slow much more lenient. 200ms should be enough time even for a bad CPU on a bad day. a bad regex should fail with near certainty
| * Merge pull request #23470 from bobeldering/f2py-f77-array-parsing-fixCharles Harris2023-04-212-10/+14
| |\ | | | | | | BUG: Fix bug in parsing F77 style string arrays.
| | * BUG: Fix bug in parsing F77 style string arrays.Bob Eldering2023-03-272-10/+14
| | | | | | | | | | | | | | | | | | | | | Example problematic variable: CHARACTER WORDARR(3)*8 This would be wrapped by an array with shape (3, 8) and dtype |S1, instead of the desired shape (3,) and dtype |S8. See #23356.
* | | TST: Add a test for the f2py function wrapper fileRohit Goswami2023-04-172-0/+33
| | |
* | | TST: Add a test for gh-23598Rohit Goswami2023-04-162-1/+13
|/ /
* | DNM: test some more `selected_real_kind` results [skip azurepipelines]Derek Homeier2023-04-151-3/+24
| |
* | BUG: include macOS arm64 `machine()` value in `_selected_real_kind_func`Derek Homeier2023-04-151-1/+1
| |
* | make time tests more resilient to random noisemolsonkiko2023-03-261-7/+16
| |
* | make regex still match cases where OG fix failedmolsonkiko2023-03-261-6/+19
| | | | | | | | | | | | | | My first replacement regex would have failed to match cases like '@)@bind foo bar baz@(@@)@' which should apparently be matched. Added a test to make sure the regex does this.
* | update test for less arbitrary time requirementmolsonkiko2023-03-261-1/+2
| |
* | initial fix for nameargspattern regexmolsonkiko2023-03-261-2/+9
| |
* | add nameargspattern backtracking testmolsonkiko2023-03-261-0/+17
|/
* BUG: fix for f2py string scalars (#23194)Alexander Heger2023-02-112-0/+27
| | | | | | | | | | | | | | in previous version, any string scalar was converted to a string array of dimension len, i.e., a definition character(len=N) :: X effectively became character(len=NNN), dimension(NNN) :: X from the point of few of the numpy (python) interface: X.shape == (NNN,) X.dtype == '|SNNN' Closes gh-23192
* TST: Comment out spurious print in f2py testSebastian Berg2023-02-091-3/+4
| | | | Matti was wondering where it came from, so lets comment it out.
* CI: Rebase numpy DLLs in runtests.py.DWesl2023-01-301-1/+2
| | | | | This assumes NumPy is rebased before tests run, but does not assume the locations are in the database.
* TST: Rebase F2Py-built extension modules.DWesl2023-01-291-0/+19
| | | | | Also adjust CI so they don't immediately collide with NumPy. I forgot to do that last time, which caused problems.
* Revert "FIX: Add glob import for test module rebase."DWesl2023-01-271-1/+0
| | | | This reverts commit 33709afdbbc47b7adb7dd06a730246d8c02f724f.
* Revert "TST: Rebase F2Py test modules on Cygwin."DWesl2023-01-271-16/+0
| | | | This reverts commit 608864613b801b9c85573186a9d07eeac5e7e465.
* FIX: Add glob import for test module rebase.DWesl2023-01-271-0/+1
| | | | Forgot to check this earlier.
* TST: Rebase F2Py test modules on Cygwin.DWesl2023-01-261-0/+16
| | | | Let's see if this fixes the 8-50 fork failures.
* BUG: Use whole file for encoding checks with `charset_normalizer` [f2py] ↵Rohit Goswami2022-12-252-4/+17
| | | | | | | | | | | | | | | | | | | | | (#22872) * BUG: Use whole file for encoding checks [f2py] * DOC: Add a code comment Co-authored-by: melissawm <melissawm@gmail.com> * TST: Add a conditional unicode f2py test * MAINT: Add chardet as a test requirement * ENH: Cleanup and switch f2py to charset_normalizer * MAINT: Remove chardet for charset_normalizer * TST: Simplify UTF-8 encoding [f2py] Co-authored-by: melissawm <melissawm@gmail.com>
* TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-112-1/+7
|
* TST: Rename setup to setup_method in f2py utils (inherited into Tests)Sebastian Berg2022-10-272-2/+2
|
* TST,MAINT: Replace most `setup` with `setup_method` (also teardown)Sebastian Berg2022-10-271-2/+2
| | | | | | | | In some cases, the replacement is clearly not what is intended, in those (where setup was called explicitly), I mostly renamed `setup` to `_setup`. The `test_ccompile_opt` is a bit confusing, so left it right now (this will probably fail)
* TST: Further test fixup for python integer conversion warningSebastian Berg2022-10-061-1/+1
|
* TST: Fixup tests for strict Python integer conversionsSebastian Berg2022-10-052-2/+2
|
* Merge pull request #21807 from HaoZeke/useFortranValueMelissa Weber Mendonça2022-07-022-0/+23
|\
| * TST: Ensure the f2py value attribute is handledRohit Goswami2022-06-212-0/+23
| |
* | TST: Tighten test_gen_pyf_stdout checkNamami Shanker2022-06-231-0/+1
| |
* | TST: Add f2py2e f2cmap flag testNamami Shanker2022-06-231-3/+23
|/
* TST: Ensure long_long in f2cmap worksRohit Goswami2022-06-103-0/+25
|
* Merge pull request #19388 from pearu/enh-f2py-character-supportMelissa Weber Mendonça2022-06-068-29/+749
|\ | | | | Co-authored-by: Rohit Goswami <rog32@hi.is>
| * MAINT,DOC: Fix doc fragments and testsRohit Goswami2022-06-051-1/+1
| |
| * TST: Fix build by changing call signatureRohit Goswami2022-06-051-1/+1
| |
| * ENH: Support character string arraysPearu Peterson2022-06-058-29/+749
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TST: added test for issue #18684 ENH: f2py opens files with correct encoding, fixes #635 TST: added test for issue #6308 TST: added test for issue #4519 TST: added test for issue #3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
* | ENH: complete the 'vars' list of a moduleDamien Caliste2022-06-052-0/+19
|/ | | | | | Add to the 'vars' list of a module missing subroutines or functions listed in the 'body' that have not been explicitely declared 'public' or 'private'.
* TST: Handle compiler checks for PYFRohit Goswami2022-05-281-4/+9
|
* MAINT: Skip F2PY tests without Fortran compilersRohit Goswami2022-05-271-4/+4
|
* TST: Kill buggy 32-bit testsRohit Goswami2022-04-302-0/+14
|
* BUG: Fix handling of skip-empty-wrappersRohit Goswami2022-04-301-2/+2
|
* MAINT: Skip buggy windows testRohit Goswami2022-04-301-2/+2
|
* TST: Initialize f2py2e tests of the F2PY CLI (#20668)Rohit Goswami2022-04-013-0/+754
| | | | | Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly numpy.distutils stuff. More importantly, sets the groundwork for #20056, in that passing the same testsuite should indicate feature parity.
* BUG,ENH: Fix negative bounds for F2PY (#21256)Rohit Goswami2022-03-312-0/+26
| | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
* Merge pull request #15844 from dcaliste/typeMelissa Weber Mendonça2022-01-172-0/+22
|\
| * ENH: add inline definition of access rights for Fortran typesDamien Caliste2022-01-042-0/+22
| | | | | | | | | | | | Allow to parse type definition with inline acess specifier, like: type, public :: foo end type foo
* | BUG, DOC: Fixes SciPy docs build warningsmelissawm2022-01-111-1/+1
| | | | | | | | | | | | | | The new f2py symbolic parser writes ternary expressions with spaces surrounding the colon operator, which causes the generated docstrings to be incorrectly parsed. Removing the spaces solves the issue.
* | ENH: add support for operator() in crackfortran.Damien Caliste2022-01-042-0/+69
|/ | | | | | | | | | | | | | Some interface name may contains parenthesis when used with operator, like: interface operator(==) module procedure my_type_equals end interface operator(==) Make the end part properly detected, and store also the operator ('==' in that case) in the name. Also implement support to list the implemented by in any interface declaration.