Skip to content

Commit

Permalink
Update failing CRAN test
Browse files Browse the repository at this point in the history
Please review carefully. The results changed but I know neither R nor the intention.
  • Loading branch information
maresb committed Sep 6, 2024
1 parent 05dca1f commit d367c16
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions grayskull/strategy/cran.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,24 @@ def dict_from_cran_lines(lines):
def remove_package_line_continuations(chunk):
"""
>>> chunk = [
'Package: A3',
'Version: 0.9.2',
'Depends: R (>= 2.15.0), xtable, pbapply',
'Suggests: randomForest, e1071',
'Imports: MASS, R.methodsS3 (>= 1.5.2), R.oo (>= 1.15.8), R.utils (>=',
' 1.27.1), matrixStats (>= 0.8.12), R.filesets (>= 2.3.0), ',
' sampleSelection, scatterplot3d, strucchange, systemfit',
'License: GPL (>= 2)',
'NeedsCompilation: no']
>>> remove_package_line_continuations(chunk)
... 'Package: A3',
... 'Version: 0.9.2',
... 'Depends: R (>= 2.15.0), xtable, pbapply',
... 'Suggests: randomForest, e1071',
... 'Imports: MASS, R.methodsS3 (>= 1.5.2), R.oo (>= 1.15.8), R.utils (>=',
... ' 1.27.1), matrixStats (>= 0.8.12), R.filesets (>= 2.3.0), ',
... ' sampleSelection, scatterplot3d, strucchange, systemfit',
... 'License: GPL (>= 2)',
... 'NeedsCompilation: no']
>>> remove_package_line_continuations(chunk) # doctest: +NORMALIZE_WHITESPACE
['Package: A3',
'Version: 0.9.2',
'Depends: R (>= 2.15.0), xtable, pbapply',
'Suggests: randomForest, e1071',
'Imports: MASS, R.methodsS3 (>= 1.5.2), R.oo (>= 1.15.8), R.utils (>= 1.27.1), matrixStats (>= 0.8.12), R.filesets (>= 2.3.0), sampleSelection, scatterplot3d, strucchange, systemfit, rgl,'
'Imports: MASS, R.methodsS3 (>= 1.5.2), R.oo (>= 1.15.8), R.utils (>= 1.27.1), matrixStats (>= 0.8.12), R.filesets (>= 2.3.0), sampleSelection, scatterplot3d, strucchange, systemfit',
'License: GPL (>= 2)',
'NeedsCompilation: no']
'NeedsCompilation: no',
'']
""" # NOQA
continuation = (" ", "\t")
continued_ix = None
Expand Down

0 comments on commit d367c16

Please sign in to comment.