Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-k is ignored if there is a number in the test title #397

Closed
pytestbot opened this issue Nov 27, 2013 · 2 comments
Closed

-k is ignored if there is a number in the test title #397

pytestbot opened this issue Nov 27, 2013 · 2 comments
Labels
type: bug problem that needs to be addressed

Comments

@pytestbot
Copy link
Contributor

Originally reported by: Darren Hoyland (BitBucket: autonomouse, GitHub: autonomouse)


Version 2.4.2 of py.test isn't able to select a test if it has a number in the test name. Instead it just runs every test in the folder as if the -k flag isn't there.

I had a test called "test_create_class_with_2_students", but I had to rename it to "test_create_class_with_two_students" because the one with the number somehow led to py.test ignoring the filter and running everything.

It's not an issue with version 2.3.5 of py.test, but it is on version 2.4.2.


@pytestbot
Copy link
Contributor Author

Original comment by Darren Hoyland (BitBucket: autonomouse, GitHub: autonomouse):


Sorry, might have been a bit hasty with reporting that one - that wasn't the cause. I'll investigate further

@pytestbot
Copy link
Contributor Author

Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42):


We do have a fix on trunk that is going to be in 2.4.3 which would make "-k 2" work. I don't think it does with 2.4.2.

@pytestbot pytestbot added the type: bug problem that needs to be addressed label Jun 15, 2015
Julian-O added a commit to Julian-O/moviepy that referenced this issue Jul 16, 2019
Use of the message parameter is now deprecated.
See pytest-dev/pytest#397
Removed to reduce warnings when tests run.
bluesky-dev2 pushed a commit to bluesky-dev2/animation_movie that referenced this issue Apr 30, 2023
Use of the message parameter is now deprecated.
See pytest-dev/pytest#397
Removed to reduce warnings when tests run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug problem that needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant