Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb417418

Browse files
committed
make psutil a dependency
1 parent1dc3c92 commitb417418

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

‎setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
fromdistutils.coreimportsetup
77

88
# Basic dependencies
9-
install_requires= ["pg8000","port-for>=0.4","six>=1.9.0"]
9+
install_requires= ["pg8000","port-for>=0.4","six>=1.9.0","psutil"]
1010

1111
# Add compatibility enum class
1212
ifsys.version_info< (3,4):

‎testgres/node.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
importio
44
importos
5+
importpsutil
56
importsubprocess
67
importtime
78

@@ -183,11 +184,6 @@ def child_processes(self):
183184
Each process is represented by ProcessProxy object.
184185
"""
185186

186-
try:
187-
importpsutil
188-
exceptImportError:
189-
raiseTestgresException("psutil module is not installed")
190-
191187
# get a list of postmaster's children
192188
children=psutil.Process(self.pid).children()
193189

‎tests/test_simple.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ def good_properties(f):
6060
returnTrue
6161

6262

63-
defmodule_exists(module):
64-
try:
65-
__import__(module)
66-
returnTrue
67-
exceptImportError:
68-
returnFalse
69-
70-
7163
@contextmanager
7264
defremoving(f):
7365
try:
@@ -711,7 +703,6 @@ def test_version_management(self):
711703
self.assertTrue(b>c)
712704
self.assertTrue(a>c)
713705

714-
@unittest.skipUnless(module_exists('psutil'),'might be missing')
715706
deftest_child_pids(self):
716707
master_processes= [
717708
ProcessType.AutovacuumLauncher,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp