diff options
author | Chris Lalancette <clalancette@gmail.com> | 2022-09-06 12:23:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 18:23:08 +0200 |
commit | 70eecaf44d61f2cabcd22ffb407b904242a122c9 (patch) | |
tree | 29d605b10d7cde532d5aade3b9939bc16c94988b /psutil/tests | |
parent | 9f9a82d02c901f62512236b44edb050f84cbe5b6 (diff) | |
download | psutil-70eecaf44d61f2cabcd22ffb407b904242a122c9.tar.gz |
Add in support for network interface flags. (#2037)
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Diffstat (limited to 'psutil/tests')
-rwxr-xr-x | psutil/tests/test_system.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py index e130c935..d6b7a21a 100755 --- a/psutil/tests/test_system.py +++ b/psutil/tests/test_system.py @@ -808,12 +808,13 @@ class TestNetAPIs(PsutilTestCase): psutil.NIC_DUPLEX_UNKNOWN) for name, stats in nics.items(): self.assertIsInstance(name, str) - isup, duplex, speed, mtu = stats + isup, duplex, speed, mtu, flags = stats self.assertIsInstance(isup, bool) self.assertIn(duplex, all_duplexes) self.assertIn(duplex, all_duplexes) self.assertGreaterEqual(speed, 0) self.assertGreaterEqual(mtu, 0) + self.assertIsInstance(flags, str) @unittest.skipIf(not (LINUX or BSD or MACOS), "LINUX or BSD or MACOS specific") |