Bug 999511 - Unit Test Failures in pulp_rpm/plugins/test/unit/model_factory.py on RHEL5
Summary: Unit Test Failures in pulp_rpm/plugins/test/unit/model_factory.py on RHEL5
Keywords:
Status: CLOSED DUPLICATE of bug 999516
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 2.2
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 12:55 UTC by Barnaby Court
Modified: 2013-09-09 16:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-21 14:17:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Barnaby Court 2013-08-21 12:55:50 UTC
Description of problem:  Syntax errors are being thrown by the unit tests in pulp_rpm when the test suite is run on RHEL5.  Specifically syntax errors are being thrown in: pulp_rpm/plugins/test/unit/model_factory.py


Version-Release number of selected component (if applicable): 2.2 & Master


How reproducible:  Easily 


Steps to Reproduce:
1. Run the test suite on RHEL5
2. Inspect the log file for test failures

Actual results:
Unit tests fail on RHEL 5

Expected results:  All unit tests should pass on RHEL 5


Additional info:  

This one failure is causing errors in multiple unit tests

======================================================================
ERROR: Failure: ImportError (No module named functools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/nose/loader.py", line 381, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/usr/lib/python2.4/site-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.4/site-packages/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/jenkins/workspace/pulp_all-rhel5/pulp_rpm/plugins/test/unit/test_associate.py", line 22, in ?
    import model_factory
  File "/home/jenkins/workspace/pulp_all-rhel5/pulp_rpm/plugins/test/unit/model_factory.py", line 14, in ?
    import functools
ImportError: No module named functools

Comment 1 Barnaby Court 2013-08-21 14:17:00 UTC

*** This bug has been marked as a duplicate of bug 999516 ***


Note You need to log in before you can comment on or make changes to this bug.