Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_create_time() failure on OS X 10.8.4 #395

Closed
giampaolo opened this issue May 23, 2014 · 1 comment
Closed

test_create_time() failure on OS X 10.8.4 #395

giampaolo opened this issue May 23, 2014 · 1 comment

Comments

@giampaolo
Copy link
Owner

From jlo...@gmail.com on June 18, 2013 02:38:14

FAIL: test_fetch_all (__main__.TestFetchAllProcesses)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 1952, in test_fetch_all
    self.fail(''.join(failures))
AssertionError:     
    ======================================================================
    FAIL: test_create_time (proc=psutil.Process(pid=0, name='kernel_task'), 
ret=1370991995.147368))
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "test/test_psutil.py", line 1937, in test_fetch_all
        meth(ret)
      File "test/test_psutil.py", line 1985, in create_time
        self.assertGreaterEqual(ret, psutil.BOOT_TIME)
      File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
 line 944, in assertGreaterEqual
        self.fail(self._formatMessage(msg, standardMsg))
      File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
 line 408, in fail
        raise self.failureException(msg)
    AssertionError: 1370991995.147368 not greater than or equal to 1370992000.0    



Looks like this is just a rounding difference comparing to BOOT_TIME.

Original issue: http://code.google.com/p/psutil/issues/detail?id=395

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on July 10, 2013 07:16:51

Fixed in revision 9ece704f0982 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant