diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-08 18:10:38 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-08 18:10:38 +0200 |
commit | 6b2f97b9e4e8bb9bd095ac8efd342b8ea7b22f69 (patch) | |
tree | 3af38ea40817a65d0725ae6f27e0b86440445a24 | |
parent | 26bcd9c85a2250a5ac34b6750615b5ba9cc1c002 (diff) | |
download | psutil-6b2f97b9e4e8bb9bd095ac8efd342b8ea7b22f69.tar.gz |
test was not correct
-rwxr-xr-x | psutil/tests/test_misc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py index a34224c7..795b58e2 100755 --- a/psutil/tests/test_misc.py +++ b/psutil/tests/test_misc.py @@ -418,14 +418,14 @@ class TestWrapNumbers(unittest.TestCase): input = {'foo': nt(100, 100, 10)} self.assertEqual(wrap_numbers(input, 'funname'), {'foo': nt(100, 100, 110)}) - # then it goes up (90, expect 200) + # then it goes up input = {'foo': nt(100, 100, 90)} self.assertEqual(wrap_numbers(input, 'funname'), - {'foo': nt(100, 100, 200)}) - # then wrap again (expect 220) + {'foo': nt(100, 100, 190)}) + # then it wraps again input = {'foo': nt(100, 100, 20)} self.assertEqual(wrap_numbers(input, 'funname'), - {'foo': nt(100, 100, 220)}) + {'foo': nt(100, 100, 210)}) # =================================================================== |