diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-12 12:37:54 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-12 12:37:54 +0200 |
commit | 81e3a613df6af5d6ffefae8b617da81aa4007868 (patch) | |
tree | 25f147cf10553f882982c6be237e5683f2e30537 /psutil/tests/test_contracts.py | |
parent | 90b35e3ae85651d67a095205adc94aaa0a4ec98f (diff) | |
download | psutil-81e3a613df6af5d6ffefae8b617da81aa4007868.tar.gz |
fix some tests on BSD platforms
Diffstat (limited to 'psutil/tests/test_contracts.py')
-rwxr-xr-x | psutil/tests/test_contracts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index b767e3eb..392eb69b 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -258,8 +258,8 @@ class TestSystemAPITypes(PsutilTestCase): self.assertIsInstance(disk.mountpoint, str) self.assertIsInstance(disk.fstype, str) self.assertIsInstance(disk.opts, str) - self.assertIsInstance(disk.maxfile, int) - self.assertIsInstance(disk.maxpath, int) + self.assertIsInstance(disk.maxfile, (int, type(None))) + self.assertIsInstance(disk.maxpath, (int, type(None))) @unittest.skipIf(SKIP_SYSCONS, "requires root") def test_net_connections(self): |