Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9210273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:02:00+00:00 2026-06-18T01:02:00+00:00

I have encountered the problem described in this py.test problem report: https://bitbucket.org/hpk42/pytest/issue/27/collectonly-doesnt-respect-k These are

  • 0

I have encountered the problem described in this py.test problem report:
https://bitbucket.org/hpk42/pytest/issue/27/collectonly-doesnt-respect-k

These are the results from the Jenkins console:
~~~~~~~~~~~~~~~~~~
+ py.test -v -k test_example –junitxml=functionaltests/reports/res.xml
============================= test session starts ==============================
platform linux2 — Python 2.7.3 — pytest-2.3.4 — /var/lib/jenkins/shiningpanda/jobs/9df20569/virtualenvs/701cc1aa/bin/python2.7
plugins: xdist
collecting … collected 3 items / 1 errors

functionaltests/test_example.py:40: test_data[apple] PASSED
functionaltests/test_example.py:40: test_data[pear] PASSED
functionaltests/test_example.py:40: test_data[berry] PASSED

==================================== ERRORS ====================================
___________ ERROR collecting functionaltests/test_smm_healthcheck.py ___________
functionaltests/test_smm_healthcheck.py:2: in <module>
>   import models.SMMMicrosites as site_data
E   ImportError: No module named models.SMMMicrosites
 generated xml file: /var/lib/jenkins/workspace/WT/functionaltests/reports/res.xml 
====================== 3 passed, 1 error in 0.05 seconds =======================
Build step 'Virtualenv Builder' marked build as failure
Recording test results
Finished: FAILURE

~~~~~~~~~~~~~~~~~~

The test module “test_smm_healthcheck.py” should not be collected or executed. Has the fix — this is resolved — not been released? I’m running py.test version 2.3.4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:02:02+00:00Added an answer on June 18, 2026 at 1:02 am

    The “-k” flag does not influence what is collected – only what is reported with –collectonly. So you can’t use it to prevent collection. You can use –ignore=path (once or multiple times) to prevent collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered the issue described above in a report that I have created
I have encountered this problem today and I don't have an explanation for it.
I have encountered a problem in Access 2010 for Windows: Launch a report using
I have encountered a similar problem described here (and in other places) - where
I encountered this problem and was able to resolve it as described. Gesture recognizer
I have encountered this error when trying to push a subrepository to bitbucket: D:\Work\agile.crm.framework>hg
I have encountered a problem with creating a thumbnail from an uploaded image file,
I have encountered a problem in one of my Java projects, which causes bugs.
I have encountered a problem twice now whereby a producer thread produces N work
I have encountered a problem of placing data into the Table View. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.