Permalink
Browse files

changed assert_dict_equals to ok_ since py2.6 unittest doesn't suppor…

…t. Tested pip install procinfo
  • Loading branch information...
kracekumar committed Aug 8, 2012
1 parent 4d947d9 commit d4ffb976ef81dce8733f7627f2a80c0b9ef955a8
Showing with 7 additions and 5 deletions.
  1. +1 −1 MANIFEST.in
  2. +1 −1 procinfo/__init__.py
  3. +3 −0 setup.py
  4. +2 −3 tests/__init__.py
View
@@ -1 +1 @@
include README.rst LICENSE tests/* .
include README.rst LICENSE tests/* . *.py procinfo/*
View
@@ -1,7 +1,7 @@
#! -*- coding: utf-8 -*-
__title__ = 'procinfo'
__version__ = '0.0.1'
__version__ = '0.0.4'
__author__ = 'kracekumar'
__license__ = 'BSD'
__copyright__ = 'Copyright 2012 kracekumar '
View
@@ -10,6 +10,8 @@
except ImportError:
from distutils.core import setup
packages = ['procinfo']
if sys.argv[-1] == 'publish':
os.system("python setup.py sdist upload")
sys.exit()
@@ -23,6 +25,7 @@
long_description=open('README.rst', 'r').read(),
author='kracekumar',
author_email='me@kracekumar.com',
packages=packages,
install_requires=requires,
license=open('LICENSE', 'r').read(),
classifiers=(
View
@@ -2,12 +2,11 @@
import os
import sys
from nose.tools import assert_dict_equal
from nose.tools import ok_
sys.path.insert(0, os.path.abspath('..'))
import procinfo
def test_return_human_readable():
assert_dict_equal(procinfo.return_human_readable(3035918336L), {'value': 2.83, 'str': '2.83 GB'})
ok_(procinfo.return_human_readable(3035918336L), {'value': 2.83, 'str': '2.83 GB'})

0 comments on commit d4ffb97

Please sign in to comment.