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

[linux] 5.6.6 test failures: test_cpu_affinity, test_ionice_linux #1629

Open
mgorny opened this issue Nov 25, 2019 · 0 comments
Open

[linux] 5.6.6 test failures: test_cpu_affinity, test_ionice_linux #1629

mgorny opened this issue Nov 25, 2019 · 0 comments

Comments

@mgorny
Copy link
Contributor

mgorny commented Nov 25, 2019

Platform

  • Gentoo Linux
  • psutil 5.6.6

Bug description
Two tests fail when run on my system:

======================================================================                                                                             
FAIL: psutil.tests.test_linux.TestProcessAgainstStatus.test_cpu_affinity                                                                           
----------------------------------------------------------------------                                                                             
Traceback (most recent call last):                                                                                                                 
  File "/tmp/portage/dev-python/psutil-5.6.6/work/psutil-5.6.6-python2_7/lib/psutil/tests/test_linux.py", line 2101, in test_cpu_affinity
    self.proc.cpu_affinity(), list(range(min_, max_ + 1)))                                                                                         
AssertionError: Lists differ: [0, 1] != [0, 1, 2, 3]                                                                                               
                                                                         
Second list contains 2 additional elements.                              
First extra element 2:                                                                                                                             
2                                                                                                                                                  
                                                                                                                                                   
- [0, 1]                                                                                                                                           
+ [0, 1, 2, 3]                                                                                                                                     
                                                                                                                                                   
======================================================================                                                                             
FAIL: psutil.tests.test_process.TestProcess.test_ionice_linux                                                                                      
----------------------------------------------------------------------                                                                             
Traceback (most recent call last):                                       
  File "/tmp/portage/dev-python/psutil-5.6.6/work/psutil-5.6.6-python2_7/lib/psutil/tests/test_process.py", line 358, in test_ionice_linux
    self.assertEqual(p.ionice()[0], psutil.IOPRIO_CLASS_NONE)                                                                                      
AssertionError: 3 != 0                                                   
                                                                                                                                                   
----------------------------------------------------------------------
Ran 542 tests in 12.857s                                                                                                                           
                                    
FAILED (failures=2, skipped=204)

I don't know about the first one but the second one seems to assume tests will always be run with 'none' ionice.

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

2 participants