Skip to content

Commit e9d82b7

Browse files
committed
test: Expect failure for silent_mode GUC on PostgreSQL 9.2 and later
silent_mode has been removed in PostgreSQL 9.2, so expect a failure in the corresponding test. Additionally, avoid unnecessarily seting it to avoid failures on 9.2 and later for the same reason.
1 parent e3934fd commit e9d82b7

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

postgresql/temporal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def init(self,
134134
listen_addresses = 'localhost',
135135
log_destination = 'stderr',
136136
log_min_messages = 'FATAL',
137-
silent_mode = 'off',
138137
unix_socket_directory = cluster.data_directory,
139138
))
140139
cluster.settings.update(dict(

postgresql/test/test_cluster.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def init(self, *args, **kw):
3333
'max_connections' : '8',
3434
'listen_addresses' : 'localhost',
3535
'port' : '6543',
36-
'silent_mode' : 'off',
3736
'unix_socket_directory' : self.cluster.data_directory,
3837
})
3938

@@ -47,11 +46,15 @@ def testSilentMode(self):
4746
# silent_mode is not supported on windows by PG.
4847
if sys.platform in ('win32','win64'):
4948
pass
49+
elif self.cluster.installation.version_info[:2] >= (9, 2):
50+
pass
5051
else:
5152
raise
5253
else:
5354
if sys.platform in ('win32','win64'):
54-
self.fail("silent_mode supported on windows")
55+
self.fail("silent_mode unexpectedly supported on windows")
56+
elif self.cluster.installation.version_info[:2] >= (9, 2):
57+
self.fail("silent_mode unexpectedly supported on PostgreSQL >=9.2")
5558

5659
def testSuperPassword(self):
5760
self.init(

postgresql/test/test_connect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def configure_cluster(self):
8686
listen_addresses = listen_addresses,
8787
log_destination = 'stderr',
8888
log_min_messages = 'FATAL',
89-
silent_mode = 'off',
9089
unix_socket_directory = self.cluster.data_directory,
9190
))
9291
# 8.4 turns prepared transactions off by default.

0 commit comments

Comments
 (0)