Changeset 9478


Ignore:
Timestamp:
Dec 14, 2014 10:08:44 AM (4 years ago)
Author:
wehart
Message:

Changes to improve coverage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/pyomo/version/__init__.py

    r9475 r9478  
    3535    from os.path import abspath, dirname, exists, join
    3636    from inspect import getfile, currentframe
    37     if exists(join( dirname( abspath( getfile( currentframe() ) ) ),
    38                     '..', '..', '.svn' )):
    39         _releaselevel = 'trunk'
     37    if exists(join( dirname( abspath( getfile( currentframe() ) ) ), '..', '..', '.svn' )):
     38        _releaselevel = 'trunk'             #pragma:nocover
    4039    else:
    41         _releaselevel = 'VOTD'
    42 elif '/tags/' in _init_url:
     40        _releaselevel = 'VOTD'              #pragma:nocover
     41elif '/tags/' in _init_url:                 #pragma:nocover
    4342    _releaselevel = 'final'
    4443
     
    4645
    4746if _micro:
    48     version = '.'.join(str(x) for x in version_info[:3])
     47    version = '.'.join(str(x) for x in version_info[:3])        #pragma:nocover
    4948else:
    50     version = '.'.join(str(x) for x in version_info[:2])
     49    version = '.'.join(str(x) for x in version_info[:2])        #pragma:nocover
    5150if _releaselevel != 'final':
    5251    version += ' ('+_releaselevel+')'
Note: See TracChangeset for help on using the changeset viewer.