Skip to content

Commit

Permalink
fix(test_TotalSize)
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Dec 7, 2023
1 parent 3ad9f9b commit 8eead91
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/test_TotalSize.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,5 @@ def test_totalsize_float(self):
def test_totalsize_str(self):
msg = 'this is a test'
size = total_size(str(msg))
# different size on Linux and MacOS
# check the OS
if system() == 'Linux':
self.assertEqual(size, 41+len(msg))
elif system() == 'Darwin':
self.assertEqual(size, 49+len(msg))
elif system() == 'Windows':
self.assertEqual(size, 49+len(msg))
else:
self.fail('OS not supported')
# The size is different depending on Python version
self.assertAlmostEqual(size, 49+len(msg), delta=10)

0 comments on commit 8eead91

Please sign in to comment.