diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-24 22:07:04 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-24 22:07:04 +0100 |
commit | 356d83ce0706b3a84964931d9cb72449e50eed7e (patch) | |
tree | 9246253230c13e6bbc0e34610f0203bb2e96967e | |
parent | 634572caf7f65f2e0c749c52f7cdec2e5303a704 (diff) | |
download | psutil-356d83ce0706b3a84964931d9cb72449e50eed7e.tar.gz |
fix Cirrus failure
-rw-r--r-- | README.rst | 4 | ||||
-rwxr-xr-x | psutil/tests/test_connections.py | 3 | ||||
-rwxr-xr-x | psutil/tests/test_process.py | 5 |
3 files changed, 7 insertions, 5 deletions
@@ -22,11 +22,11 @@ :target: https://www.codacy.com/app/g-rodola/psutil?utm_source=github.com&utm_medium=referral&utm_content=giampaolo/psutil&utm_campaign=Badge_Grade :alt: Code quality -.. |travis| image:: https://img.shields.io/travis/giampaolo/psutil/master.svg?maxAge=3600&label=linux%20/%20osx +.. |travis| image:: https://img.shields.io/travis/giampaolo/psutil/master.svg?maxAge=3600&label=Linux%20/%20OSX :target: https://travis-ci.org/giampaolo/psutil :alt: Linux tests (Travis) -.. |appveyor| image:: https://img.shields.io/appveyor/ci/giampaolo/psutil/master.svg?maxAge=3600&label=windows +.. |appveyor| image:: https://img.shields.io/appveyor/ci/giampaolo/psutil/master.svg?maxAge=3600&label=Windows :target: https://ci.appveyor.com/project/giampaolo/psutil :alt: Windows tests (Appveyor) diff --git a/psutil/tests/test_connections.py b/psutil/tests/test_connections.py index b70e6d14..aede6640 100755 --- a/psutil/tests/test_connections.py +++ b/psutil/tests/test_connections.py @@ -321,7 +321,8 @@ class TestConnectedSocket(Base, unittest.TestCase): if NETBSD or FREEBSD: # On NetBSD creating a UNIX socket will cause # a UNIX connection to /var/run/log. - cons = [c for c in cons if c.raddr != '/var/run/log'] + cons = [c for c in cons if c.raddr != '/var/run/log' and + c.laddr] self.assertEqual(len(cons), 2, msg=cons) if LINUX or FREEBSD or SUNOS: # remote path is never set diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 2035305f..b1b30750 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -38,6 +38,7 @@ from psutil._compat import long from psutil._compat import PY3 from psutil.tests import APPVEYOR from psutil.tests import call_until +from psutil.tests import CIRRUS from psutil.tests import copyload_shared_lib from psutil.tests import create_exe from psutil.tests import create_proc_children_pair @@ -298,10 +299,10 @@ class TestProcess(unittest.TestCase): time.strftime("%Y %m %d %H:%M:%S", time.localtime(p.create_time())) @unittest.skipIf(not POSIX, 'POSIX only') - @unittest.skipIf(TRAVIS, 'not reliable on TRAVIS') + @unittest.skipIf(TRAVIS or CIRRUS, 'not reliable on TRAVIS/CIRRUS') def test_terminal(self): terminal = psutil.Process().terminal() - if sys.stdin.isatty() or sys.stdout.isatty() or sys.stderr.isatty(): + if sys.stdin.isatty() or sys.stdout.isatty(): tty = os.path.realpath(sh('tty')) self.assertEqual(terminal, tty) else: |