Fix an import in the tests that doesn’t seem to work as intended#612
Conversation
alanking
left a comment
There was a problem hiding this comment.
Seems fine to me. What say you, @d-w-moore?
We will need to attach an issue number to this, per our contribution process. Please create an issue describing the problem (what you've said already can just be copied as it captures it nicely) and make the commit message look like this:
[#XXX] Fix an import in the tests that doesn’t seem to work as intended
If you're feeling really nice, omit the # until this is approved at which point the commit message should be amended to include the # and force-pushed.
We can also do this for you, if you'd like. Up to you.
Thanks!
c109a13 to
d634bcf
Compare
|
Thanks! I filed an issue, #613, and adjusted the commit message as requested. |
d-w-moore
left a comment
There was a problem hiding this comment.
On the surface it seems fine, and I agree it probably doesn't break anything for older Python.
alanking
left a comment
There was a problem hiding this comment.
Excellent. @musicinmybrain - Please amend the commit message to include the # and we will get this in. Thanks!
|
this is an interesting fix. do we not have this |
This is the only place in the codebase where this occurs. It may have to do with the fact that the import irods.test.helpers as helpers |
|
ah, yes, i bet that's it. |
|
Right, the full context is, import irods.test.helpers as helpers
class TestResource(unittest.TestCase)::
from helpers import create_simple_resc_hierarchy, create_simple_rescto get a reference to
Although I could have missed something, I didn’t find a similar situation elsewhere in a quick search of the code. |
d634bcf to
32ba1dd
Compare
Done – and thanks for the quick review! |
|
sounds great. thanks for the attention! |
|
did a request come in to package this for fedora? or was this 'self-assigned'? |
|
Snakemake has been packaged in Fedora as part of the NeuroFedora special-interest group for a while, and since Snakemake 8 switched to a modular, plugin-based design, I’ve been gradually working through the Snakemake Plugins Catalog to try to get as much of it packaged in Fedora as I can reasonably manage – especially the “official”/“first-party” plugins developed by the Snakemake team – since Snakemake 8 is not necessarily very useful without a reasonably extensive plugin collection. Packaging |
|
oh nice. didn't know about that plugin. hi @stsnel! |
I’m considering packaging this in Fedora Linux. I don’t have the ability to test this with a real iRODS grid, so I’m using an import-only “smoke test” as a sanity check. I found that
irods.test.resource_testfails to import, at least on Python 3.13, with anImportErrorlike the following:Maybe this works on older Python interpreters – I’m not sure – but this PR fixes the problem in a way that should be compatible with all Pythons.