summaryrefslogtreecommitdiff
path: root/psutil/tests/test_contracts.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2023-04-12 12:37:54 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2023-04-12 12:37:54 +0200
commit81e3a613df6af5d6ffefae8b617da81aa4007868 (patch)
tree25f147cf10553f882982c6be237e5683f2e30537 /psutil/tests/test_contracts.py
parent90b35e3ae85651d67a095205adc94aaa0a4ec98f (diff)
downloadpsutil-81e3a613df6af5d6ffefae8b617da81aa4007868.tar.gz
fix some tests on BSD platforms
Diffstat (limited to 'psutil/tests/test_contracts.py')
-rwxr-xr-xpsutil/tests/test_contracts.py4
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):