Skip to content

Commit

Permalink
'import unittest' instead of 'from psutil.tests import unittest'
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
hugovk committed Apr 15, 2022
1 parent 9ba48c8 commit 4bc28e5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion psutil/tests/test_aix.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"""AIX specific tests."""

import re
import unittest

import psutil
from psutil import AIX
from psutil.tests import PsutilTestCase
from psutil.tests import sh
from psutil.tests import unittest


@unittest.skipIf(not AIX, "AIX only")
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_bsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os
import re
import time
import unittest

import psutil
from psutil import BSD
Expand All @@ -27,7 +28,6 @@
from psutil.tests import sh
from psutil.tests import spawn_testproc
from psutil.tests import terminate
from psutil.tests import unittest
from psutil.tests import which


Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os
import socket
import textwrap
import unittest
from contextlib import closing
from socket import AF_INET
from socket import AF_INET6
Expand Down Expand Up @@ -39,7 +40,6 @@
from psutil.tests import serialrun
from psutil.tests import skip_on_access_denied
from psutil.tests import tcp_socketpair
from psutil.tests import unittest
from psutil.tests import unix_socketpair
from psutil.tests import wait_for_file

Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import sys
import time
import traceback
import unittest

import psutil
from psutil import AIX
Expand Down Expand Up @@ -51,7 +52,6 @@
from psutil.tests import kernel_version
from psutil.tests import process_namespace
from psutil.tests import serialrun
from psutil.tests import unittest


# ===================================================================
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import struct
import textwrap
import time
import unittest
import warnings

import psutil
Expand All @@ -46,7 +47,6 @@
from psutil.tests import safe_rmpath
from psutil.tests import sh
from psutil.tests import skip_on_not_implemented
from psutil.tests import unittest
from psutil.tests import which


Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_memleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import functools
import os
import unittest

import psutil
import psutil._common
Expand Down Expand Up @@ -50,7 +51,6 @@
from psutil.tests import spawn_testproc
from psutil.tests import system_namespace
from psutil.tests import terminate
from psutil.tests import unittest


cext = psutil._psplatform.cext
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import pickle
import socket
import stat
import unittest

import psutil
import psutil.tests
Expand Down Expand Up @@ -51,7 +52,6 @@
from psutil.tests import mock
from psutil.tests import reload_module
from psutil.tests import sh
from psutil.tests import unittest


# ===================================================================
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_osx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import re
import time
import unittest

import psutil
from psutil import MACOS
Expand All @@ -20,7 +21,6 @@
from psutil.tests import sh
from psutil.tests import spawn_testproc
from psutil.tests import terminate
from psutil.tests import unittest


if POSIX:
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import re
import subprocess
import time
import unittest

import psutil
from psutil import AIX
Expand All @@ -32,7 +33,6 @@
from psutil.tests import skip_on_access_denied
from psutil.tests import spawn_testproc
from psutil.tests import terminate
from psutil.tests import unittest
from psutil.tests import which


Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import textwrap
import time
import types
import unittest

import psutil
from psutil import AIX
Expand Down Expand Up @@ -62,7 +63,6 @@
from psutil.tests import sh
from psutil.tests import skip_on_access_denied
from psutil.tests import skip_on_not_implemented
from psutil.tests import unittest
from psutil.tests import wait_for_pid


Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_sunos.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"""Sun OS specific tests."""

import os
import unittest

import psutil
from psutil import SUNOS
from psutil.tests import PsutilTestCase
from psutil.tests import sh
from psutil.tests import unittest


@unittest.skipIf(not SUNOS, "SUNOS only")
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import socket
import sys
import time
import unittest

import psutil
from psutil import AIX
Expand Down Expand Up @@ -50,7 +51,6 @@
from psutil.tests import enum
from psutil.tests import mock
from psutil.tests import retry_on_failure
from psutil.tests import unittest


# ===================================================================
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import socket
import stat
import subprocess
import unittest

import psutil
import psutil.tests
Expand Down Expand Up @@ -48,7 +49,6 @@
from psutil.tests import system_namespace
from psutil.tests import tcp_socketpair
from psutil.tests import terminate
from psutil.tests import unittest
from psutil.tests import unix_socketpair
from psutil.tests import wait_for_file
from psutil.tests import wait_for_pid
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
import os
import shutil
import traceback
import unittest
import warnings
from contextlib import closing

Expand Down Expand Up @@ -108,7 +109,6 @@
from psutil.tests import skip_on_access_denied
from psutil.tests import spawn_testproc
from psutil.tests import terminate
from psutil.tests import unittest


if APPVEYOR:
Expand Down
2 changes: 1 addition & 1 deletion psutil/tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import subprocess
import sys
import time
import unittest
import warnings

import psutil
Expand All @@ -36,7 +37,6 @@
from psutil.tests import sh
from psutil.tests import spawn_testproc
from psutil.tests import terminate
from psutil.tests import unittest


if WINDOWS and not PYPY:
Expand Down

0 comments on commit 4bc28e5

Please sign in to comment.