bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Matches unwanted to methods, default pattern (matching) needs to be improved #467

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have a function that ends in the name "_tests".
2. Run nosetests

What is the expected output? What do you see instead?
Nose shouldn't try to run this function, but it tries to run it anyway.

Please provide any additional information below.
Looking at the documentation on -m option, it seems like the pattern matches 
inside a function name also, so the fix should be to anchor the pattern to 
match only at the end of the name.

Original issue reported on code.google.com by harid...@gmail.com on 12 Nov 2011 at 4:50

GoogleCodeExporter commented 8 years ago
Matching a function that ends in '_tests' is intended behavior. If you want to 
do something different for your test suite, you can override testMatch.

Original comment by jpelle...@gmail.com on 14 Nov 2011 at 2:24