diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-31 15:07:59 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-31 15:07:59 +0100 |
commit | 31cb8821d1aa08bce246864554f18accd8873774 (patch) | |
tree | 4ed66fcf77eee014ec3bfa23e21597ee2670bf05 | |
parent | ad71d7061bf28aa91c7326263d95e0144ade1804 (diff) | |
download | python-ttystatus-31cb8821d1aa08bce246864554f18accd8873774.tar.gz |
Fix test for zero division.
-rw-r--r-- | ttystatus/percent_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ttystatus/percent_tests.py b/ttystatus/percent_tests.py index 9e29530..29c7cb4 100644 --- a/ttystatus/percent_tests.py +++ b/ttystatus/percent_tests.py @@ -36,6 +36,6 @@ class PercentDoneTests(unittest.TestCase): self.assertEqual(str(self.w), '0.0 %') def test_handles_zero_total(self): - self.w.update({ 'done': '', 'total': 0 }, 999) + self.w.update({ 'done': 0, 'total': 0 }, 999) self.assertEqual(str(self.w), '0.0 %') |