Skip to content

BUG: Fix return of ValueError instead of Raise - #5028

Closed
jbrockmendel wants to merge 3 commits into
statsmodels:masterfrom
jbrockmendel:tstrict
Closed

jbrockmendel wants to merge 3 commits into
statsmodels:masterfrom
jbrockmendel:tstrict

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

closes #4997

Cleanups in the vicinity, add a bunch of files to the strict-lint list.

@coveralls

coveralls commented Aug 26, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.006%) to 84.018% when pulling a13a561 on jbrockmendel:tstrict into 359aeed on statsmodels:master.

@jbrockmendel
jbrockmendel force-pushed the tstrict branch 2 times, most recently from fe13317 to f0f8fc5 Compare August 27, 2018 19:41
@bashtage

Copy link
Copy Markdown
Member

@josef-pkt Tiny PR with simple cleanups. Should be merged.

@jbrockmendel jbrockmendel changed the title MAINT: Fix return of ValueError instead of Raise BUG: Fix return of ValueError instead of Raise Sep 5, 2018
@jbrockmendel jbrockmendel mentioned this pull request Sep 8, 2018
31 of 32 tasks
@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt green, OKed by bashtage, no merge conflicts... best 3 minutes you'll spend all day.

@josef-pkt

Copy link
Copy Markdown
Member

1 line BUG, 3 or 4 lines REF out of 80 lines in 11 modules

You are also deleting commented out asserts that might be working now (pandas in predict)

That's more than 3 minutes, and more later if I have to find a few relevant lines in the git history of this PR.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

You make a fair point about the commented-out asserts, someone should fix those. The fact remains that a bunch of very easy PRs have been sitting idly for weeks.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

I’ll update to in-delete bad asserts

@codecov

codecov Bot commented Sep 12, 2018

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@359aeed). Click here to learn what that means.
The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5028   +/-   ##
=========================================
  Coverage          ?   81.42%           
=========================================
  Files             ?      582           
  Lines             ?    90121           
  Branches          ?    10096           
=========================================
  Hits              ?    73381           
  Misses            ?    14435           
  Partials          ?     2305
Impacted Files Coverage Δ
statsmodels/tools/sm_exceptions.py 100% <ø> (ø)
statsmodels/tools/data.py 73.33% <0%> (ø)
statsmodels/tools/_testing.py 58.46% <0%> (ø)
statsmodels/tools/tests/test_sequences.py 100% <100%> (ø)
statsmodels/tools/catadd.py 91.3% <100%> (ø)
statsmodels/tools/tests/test_web.py 100% <100%> (ø)
statsmodels/tools/tests/test_parallel.py 100% <100%> (ø)
statsmodels/tools/web.py 90.9% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 359aeed...a13a561. Read the comment docs.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Deletion of commented-out assertions reverted.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

BTW #5136 re-enables those assertions

@jbrockmendel
jbrockmendel deleted the tstrict branch September 21, 2018 04:04
@bashtage bashtage added the rejected Used for PRs with changes that are not acceptable label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rejected Used for PRs with changes that are not acceptable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

web._generate_url returns ValueError--> intentional?

4 participants