Running unit test test_evergreen.py requires PYTHONPATH

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • ALL
    • TIG 2018-04-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The unit test buildscripts/tests/ciconfig/test_evergreen.py requires setting PYTHONPATH if it's invoked as

      python buildscripts/tests/ciconfig/test_evergreen.py
      Traceback (most recent call last):
        File "buildscripts/tests/ciconfig/test_evergreen.py", line 9, in <module>
          import buildscripts.ciconfig.evergreen as _evergreen
      ImportError: No module named buildscripts.ciconfig.evergreen
      

      This works:

      PYTHONPATH=. python buildscripts/tests/ciconfig/test_evergreen.py
      ................
      ----------------------------------------------------------------------
      Ran 16 tests in 0.048s
      
      OK
      

            Assignee:
            Robert Guo (Inactive)
            Reporter:
            Jonathan Abrahams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: