#2984 Fix python version test to support python 3.10#2986
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2986 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 365 365
Lines 51586 51586
=======================================
Hits 51538 51538
Misses 48 48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Ready for review - the doc failure is an external link to https://gtr.ukri.org/projects?ref=NE%2FL01209X%2F1 timing out. |
|
Hi @hiker - thanks for fixing this. I've checked that its all working correctly with the changes for 3.9 and 3.10 (provided sphinx is installed). I'm personally happy with the former as our test suite runs with sphinx installed now - @sergisiso or @arporter any preference? |
|
I think we've accepted that |
|
I know this was discussed in the kwargs PR but I lost track of it before I was merged, why is shpinx needed for the tests? I assume because the type stringify is part of an error message? I still see this as problematic because presumably the production systems won't install it (e.g. spack) and it means that what we test is different that when people will run. I wouldn't use sphinx for the tests if possible. I am ok using it to improve the generated docstring for the inherited kwargs since we already need sphinx to generate the docs anyway. |
My argument for using sphinx for the test suite is because the thing we want to test here really is that we get the documentation that we expect to see for the docs, but I could be convinced either way. |
|
Oh, I see, and it is probably a coverage issue not testing it. I am ok, with:
But I wouldn't want that we inadvertedly rely on some sphinx behaviour, maybe one of the three pytest can be without sphinx? I see the coverage comes from 3.8, so leave sphinx in that one? |
|
There are some tests elsewhere that force switch off Sphinx already to test imports are correct, and some other tests that unit test the PSyclone function that hides behind those imports. |
Probably yes - though I think there are some tests in |
|
I still have some reservations about the Sphinx situation, but since I raised these comments here, I am also happy to close them. If I think this is worth solving I will open a proper ticket, I am usure for now. |
Fixes #2984 (and a minor pylint warning)