summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_configuration.py5
-rw-r--r--test/test_php_basic.py5
-rw-r--r--test/test_python_application.py2
-rw-r--r--test/test_python_atexit.py2
-rw-r--r--test/test_python_basic.py5
-rw-r--r--test/test_python_keepalive.py2
-rw-r--r--test/test_python_procman.py2
7 files changed, 16 insertions, 7 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 700e4aa1..b5b6a179 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -4,7 +4,10 @@ import unit
class TestUnitConfiguration(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('python')
+ u = unit.TestUnit()
+
+ u.check_modules('python')
+ u.check_version('0.5')
def test_json_leading_zero(self):
self.assertIn('error', self.conf('00'), 'leading zero')
diff --git a/test/test_php_basic.py b/test/test_php_basic.py
index 1487a9c5..884b49ee 100644
--- a/test/test_php_basic.py
+++ b/test/test_php_basic.py
@@ -4,7 +4,10 @@ import unit
class TestUnitBasic(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('php')
+ u = unit.TestUnit()
+
+ u.check_modules('php')
+ u.check_version('0.5')
conf_app = {
"app": {
diff --git a/test/test_python_application.py b/test/test_python_application.py
index 1b99ea44..39493160 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.4')
+ u.check_version('0.5')
def conf_with_name(self, name):
self.conf({
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
index 4c8a6543..b0cb6c34 100644
--- a/test/test_python_atexit.py
+++ b/test/test_python_atexit.py
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.3')
+ u.check_version('0.5')
def test_python_application(self):
code, name = """
diff --git a/test/test_python_basic.py b/test/test_python_basic.py
index ed0bd738..0c12242f 100644
--- a/test/test_python_basic.py
+++ b/test/test_python_basic.py
@@ -4,7 +4,10 @@ import unit
class TestUnitBasic(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('python')
+ u = unit.TestUnit()
+
+ u.check_modules('python')
+ u.check_version('0.5')
conf_app = {
"app": {
diff --git a/test/test_python_keepalive.py b/test/test_python_keepalive.py
index 55607e9c..4b5d6b5b 100644
--- a/test/test_python_keepalive.py
+++ b/test/test_python_keepalive.py
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.4')
+ u.check_version('0.5')
@unittest.expectedFailure
def test_python_keepalive_body(self):
diff --git a/test/test_python_procman.py b/test/test_python_procman.py
index 5d2a5f50..23828263 100644
--- a/test/test_python_procman.py
+++ b/test/test_python_procman.py
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.3')
+ u.check_version('0.5')
def getWorkerCount(self):
n = 0