summaryrefslogtreecommitdiff
path: root/psutil/tests/__init__.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2018-06-26 16:57:36 -0700
committerGitHub <noreply@github.com>2018-06-26 16:57:36 -0700
commit2f60e997fc1c500e0c245979bbecf2761f36e820 (patch)
tree5459ce3b71fad107ec41c8b720811a8110a3380d /psutil/tests/__init__.py
parent7a3ed446447ec845a7d03b32233b4ed7b48f3c26 (diff)
downloadpsutil-2f60e997fc1c500e0c245979bbecf2761f36e820.tar.gz
Rename OSX to macOS (#1298)
rename OSX to macOS
Diffstat (limited to 'psutil/tests/__init__.py')
-rw-r--r--psutil/tests/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index f11a6a02..2b00d426 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -36,7 +36,7 @@ from socket import SOCK_DGRAM
from socket import SOCK_STREAM
import psutil
-from psutil import OSX
+from psutil import MACOS
from psutil import POSIX
from psutil import SUNOS
from psutil import WINDOWS
@@ -179,7 +179,7 @@ def _get_py_exe():
else:
return exe
- if OSX:
+ if MACOS:
exe = \
attempt(sys.executable) or \
attempt(os.path.realpath(sys.executable)) or \
@@ -367,7 +367,7 @@ def create_proc_children_pair():
def create_zombie_proc():
"""Create a zombie process and return its PID."""
assert psutil.POSIX
- unix_file = tempfile.mktemp(prefix=TESTFILE_PREFIX) if OSX else TESTFN
+ unix_file = tempfile.mktemp(prefix=TESTFILE_PREFIX) if MACOS else TESTFN
src = textwrap.dedent("""\
import os, sys, time, socket, contextlib
child_pid = os.fork()
@@ -810,7 +810,7 @@ def get_suite():
x.startswith('test_memory_leaks')]
if "WHEELHOUSE_UPLOADER_USERNAME" in os.environ:
testmods = [x for x in testmods if not x.endswith((
- "osx", "posix", "linux"))]
+ "macos", "posix", "linux"))]
suite = unittest.TestSuite()
for tm in testmods:
# ...so that the full test paths are printed on screen