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

Commit60bb4c5

Browse files
Cleanup
1 parentaaaa677 commit60bb4c5

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

‎tests/test_simple.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ def test_init_after_cleanup(self):
144144
node.cleanup()
145145
node.init().start().execute('select 1')
146146

147-
# @unittest.skipUnless(util_exists('pg_resetwal.exe' if os.name == 'nt' else 'pg_resetwal'), 'pgbench might be missing')
148-
# @unittest.skipUnless(pg_version_ge('9.6'), 'requires 9.6+')
149147
deftest_init_unique_system_id(self):
150148
# this function exists in PostgreSQL 9.6+
151149
__class__.helper__skip_test_if_util_not_exist("pg_resetwal")
@@ -456,7 +454,6 @@ def test_replicate(self):
456454
res=node.execute('select * from test')
457455
assert (res== [])
458456

459-
# @unittest.skipUnless(pg_version_ge('9.6'), 'requires 9.6+')
460457
deftest_synchronous_replication(self):
461458
__class__.helper__skip_test_if_pg_version_is_not_ge("9.6")
462459

@@ -499,7 +496,6 @@ def test_synchronous_replication(self):
499496
res=standby1.safe_psql('select count(*) from abc')
500497
assert (rm_carriage_returns(res)==b'1000000\n')
501498

502-
# @unittest.skipUnless(pg_version_ge('10'), 'requires 10+')
503499
deftest_logical_replication(self):
504500
__class__.helper__skip_test_if_pg_version_is_not_ge("10")
505501

@@ -570,7 +566,6 @@ def test_logical_replication(self):
570566
res=node2.execute('select * from test2')
571567
assert (res== [('a', ), ('b', )])
572568

573-
# @unittest.skipUnless(pg_version_ge('10'), 'requires 10+')
574569
deftest_logical_catchup(self):
575570
""" Runs catchup for 100 times to be sure that it is consistent """
576571
__class__.helper__skip_test_if_pg_version_is_not_ge("10")
@@ -595,7 +590,6 @@ def test_logical_catchup(self):
595590
assert (res== [(i,i, )])
596591
node1.execute('delete from test')
597592

598-
# @unittest.skipIf(pg_version_ge('10'), 'requires <10')
599593
deftest_logical_replication_fail(self):
600594
__class__.helper__skip_test_if_pg_version_is_ge("10")
601595

@@ -774,7 +768,6 @@ def test_logging(self):
774768
master.restart()
775769
assert (master._logger.is_alive())
776770

777-
# @unittest.skipUnless(util_exists('pgbench.exe' if os.name == 'nt' else 'pgbench'), 'pgbench might be missing')
778771
deftest_pgbench(self):
779772
__class__.helper__skip_test_if_util_not_exist("pgbench")
780773

‎tests/test_simple_remote.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ def test_init_after_cleanup(self):
217217
node.cleanup()
218218
node.init().start().execute('select 1')
219219

220-
# @unittest.skipUnless(util_exists('pg_resetwal'), 'might be missing')
221-
# @unittest.skipUnless(pg_version_ge('9.6'), 'requires 9.6+')
222220
deftest_init_unique_system_id(self):
223221
# this function exists in PostgreSQL 9.6+
224222
__class__.helper__skip_test_if_util_not_exist("pg_resetwal")
@@ -522,7 +520,6 @@ def test_replicate(self):
522520
res=node.execute('select * from test')
523521
assert (res== [])
524522

525-
# @unittest.skipUnless(pg_version_ge('9.6'), 'requires 9.6+')
526523
deftest_synchronous_replication(self):
527524
__class__.helper__skip_test_if_pg_version_is_not_ge("9.6")
528525

@@ -565,7 +562,6 @@ def test_synchronous_replication(self):
565562
res=standby1.safe_psql('select count(*) from abc')
566563
assert (res==b'1000000\n')
567564

568-
# @unittest.skipUnless(pg_version_ge('10'), 'requires 10+')
569565
deftest_logical_replication(self):
570566
__class__.helper__skip_test_if_pg_version_is_not_ge("10")
571567

@@ -636,7 +632,6 @@ def test_logical_replication(self):
636632
res=node2.execute('select * from test2')
637633
assert (res== [('a',), ('b',)])
638634

639-
# @unittest.skipUnless(pg_version_ge('10'), 'requires 10+')
640635
deftest_logical_catchup(self):
641636
""" Runs catchup for 100 times to be sure that it is consistent """
642637
__class__.helper__skip_test_if_pg_version_is_not_ge("10")
@@ -661,7 +656,6 @@ def test_logical_catchup(self):
661656
assert (res== [(i,i, )])
662657
node1.execute('delete from test')
663658

664-
# @unittest.skipIf(pg_version_ge('10'), 'requires <10')
665659
deftest_logical_replication_fail(self):
666660
__class__.helper__skip_test_if_pg_version_is_ge("10")
667661

@@ -840,7 +834,6 @@ def test_logging(self):
840834
master.restart()
841835
assert (master._logger.is_alive())
842836

843-
# @unittest.skipUnless(util_exists('pgbench'), 'might be missing')
844837
deftest_pgbench(self):
845838
__class__.helper__skip_test_if_util_not_exist("pgbench")
846839

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp