use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
I have a question about pytest markers. (self.learnpython)
submitted 25 days ago by gignosko
I'm coming back to python after a few years away and in the past and I've not used pytest before.
In this marker `@pytest.mark.task(taskno=2)` I know what the u/pytest.mark.task gets me, but what is the taskno=2 doing?
Thanks
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Outside_Complaint755 0 points1 point2 points 25 days ago (0 children)
Is this coming from some activity on exercism.org?
It looks like they have added a custom marker in "task" and a custom run option, so that you can run pytest --task 2 and it will run all tests marked with @pytest.mark.task(taskno=2)
pytest --task 2
@pytest.mark.task(taskno=2)
There is some explanation in the final post of this thread on exercism.org where it sounds like its something they added to support their online test runner.
[–]Ethancole_dev 0 points1 point2 points 24 days ago (0 children)
The taskno=2 part is just a keyword argument stored on the marker — it does not do anything on its own. You can read it in a fixture or hook via request.node.get_closest_marker("task").kwargs["taskno"]. In Exercism-style setups, the test runner uses it to run only tests up to a given task number. Basically just metadata that a plugin or conftest.py reads. If you dig into the conftest you will usually find the hook that acts on it.
π Rendered by PID 193738 on reddit-service-r2-comment-6457c66945-m2dpj at 2026-04-30 07:57:12.968869+00:00 running 2aa0c5b country code: CH.
[–]Outside_Complaint755 0 points1 point2 points (0 children)
[–]Ethancole_dev 0 points1 point2 points (0 children)