2828"""
2929
3030import time
31- import unittest
3231
3332import test_env
3433
3534
36- @unittest .skipUnless (
37- test_env .get_extended_config_bool ("run_long_tests" ),
38- "extended configuration run_long_tests is disabled" ,
39- )
35+ @test_env .skip_unless_run_long_tests ()
4036class TestCase (test_env .BaseTestCase ):
4137 def test_ext_1000 (self ):
4238 "E1000 - test pool timeout with simple acquire after waiting"
@@ -62,7 +58,7 @@ def test_ext_1001(self):
6258 conn = pool .acquire ()
6359 self .assertEqual (pool .opened , 3 )
6460
65- @unittest . skipUnless ( test_env .get_is_thin (), "doesn't occur in thick mode" )
61+ @test_env .skip_unless_thin_mode ( )
6662 def test_ext_1002 (self ):
6763 "E1002 - test pool timeout shrinks to min on pool inactivity"
6864 pool = test_env .get_pool (min = 3 , max = 10 , increment = 2 , timeout = 4 )
@@ -73,7 +69,7 @@ def test_ext_1002(self):
7369 time .sleep (6 )
7470 self .assertEqual (pool .opened , 3 )
7571
76- @unittest . skipUnless ( test_env .get_is_thin (), "doesn't occur in thick mode" )
72+ @test_env .skip_unless_thin_mode ( )
7773 def test_ext_1003 (self ):
7874 "E1003 - test pool timeout eliminates extra connections on inactivity"
7975 pool = test_env .get_pool (min = 4 , max = 10 , increment = 4 , timeout = 3 )
@@ -85,7 +81,7 @@ def test_ext_1003(self):
8581 self .assertEqual (pool .opened , 5 )
8682 del conns
8783
88- @unittest . skipUnless ( test_env .get_is_thin (), "doesn't occur in thick mode" )
84+ @test_env .skip_unless_thin_mode ( )
8985 def test_ext_1004 (self ):
9086 "E1004 - test pool max_lifetime_session on release"
9187 pool = test_env .get_pool (
@@ -101,7 +97,7 @@ def test_ext_1004(self):
10197 time .sleep (2 )
10298 self .assertEqual (pool .opened , 4 )
10399
104- @unittest . skipUnless ( test_env .get_is_thin (), "doesn't occur in thick mode" )
100+ @test_env .skip_unless_thin_mode ( )
105101 def test_ext_1005 (self ):
106102 "E1005 - test pool max_lifetime_session on acquire"
107103 pool = test_env .get_pool (
0 commit comments