zhengzheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Unit test test_get_io_counters fails on Python 2.6, 2.7, and 3.2, Linux kernel 3.2, Debian Sid #270

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile Debian package
2. Look at test code output.
3.

What is the expected output?

test_get_io_counters (__main__.TestCase) ... ok

What do you see instead?

Python 2.6:
FAIL: test_get_io_counters (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 150, in inner
    return fun(self, *args, **kwargs)
  File "test/test_psutil.py", line 698, in test_get_io_counters
    self.assertTrue(io2.write_bytes > io1.write_bytes)
AssertionError

Python2.7:
FAIL: test_get_io_counters (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 150, in inner
    return fun(self, *args, **kwargs)
  File "test/test_psutil.py", line 698, in test_get_io_counters
    self.assertTrue(io2.write_bytes > io1.write_bytes)
AssertionError: False is not true

Python 3.2:
FAIL: test_get_io_counters (__main__.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 150, in inner
    return fun(self, *args, **kwargs)
  File "test/test_psutil.py", line 698, in test_get_io_counters
    self.assertTrue(io2.write_bytes > io1.write_bytes)
AssertionError: False is not true

What version of psutil are you using? What Python version?

On what operating system? Is it 32bit or 64bit version?

Please provide any additional information below.

Original issue reported on code.google.com by matthewg...@gmail.com on 1 Jun 2012 at 3:06

GoogleCodeExporter commented 9 years ago
OS is Debian Wheezy/Sid, 64 bit, Linux kernel 3.2 amd64 architecture

Original comment by matthewg...@gmail.com on 1 Jun 2012 at 3:08

GoogleCodeExporter commented 9 years ago
Hi Giampaolo,
Is there a chance you can give it a look asap? it's currently the last (known) 
piece missing to properly support python3 (at least for Debian) - once this is 
fixed, I can prepare a py3k debian package for psutil.

Cheers,
Sandro

Original comment by sandro.tosi on 9 Jun 2012 at 8:44

GoogleCodeExporter commented 9 years ago
I should have fixed it in r1342.
It's likely the test was unreliable on certain platform where the IO counters 
are not updated soon enough.

Original comment by g.rodola on 10 Jun 2012 at 10:44

GoogleCodeExporter commented 9 years ago
I can confirm this bug is fixed.

Original comment by sandro.tosi on 30 Aug 2012 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 30 Aug 2012 at 10:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r1342 == revision ???

Original comment by g.rodola on 2 Mar 2013 at 12:08