--- you can reply above this line ---
New issue 224: a really large argument string will throw py.error.ENAMETOOLONG
https://bitbucket.org/hpk42/pytest/issue/224/a-really-large-argument-string-will-throw
Anonymous:
If you call py.test with something nefarious like this, config.py/getcfg()
throws py.error.ENAMETOOLONG because it tries to make a file path from each
command argument.
py.test -m "flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or
flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or
flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or
flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or flyingmonkey1.py or
flyingmonkey1.py" scripts/
I'm not sure if 'right' solution is to just not do this, or to catch this
particular exception.
try:
if p.check():
# the rest of things
except py.error.ENAMETOOLONG:
continue
--
This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
_______________________________________________
py-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/py-dev