Skip to content

Commit

Permalink
Fix broken requirement: Python 2.6 requirements!
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Feb 4, 2018
1 parent 9974d23 commit 6b5c3d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ matrix:
- python: "2.6"
env: TEST_SUITE=virtualenv

services:
- mongodb

install:
# Remove python warnings
- unset PYTHONWARNINGS
Expand Down
5 changes: 3 additions & 2 deletions test_run/test_launch_daemons_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ def test_daemons_modules(self):
nb_errors = self._run_daemons_modules(cfg_folder=cfg_folder,
tmp_folder='./run/test_launch_daemons_modules_1',
cfg_modules=cfg_modules)
self.kill_daemons()
assert nb_errors == 0, "Error logs raised!"
print("No error logs raised when daemons started and loaded the modules")
self.kill_daemons()

@pytest.mark.skipif(sys.version_info[:2] < (2, 7), reason="Not available for Python < 2.7")
def test_daemons_modules_logs(self):
Expand All @@ -294,6 +294,8 @@ def test_daemons_modules_logs(self):
'poller': '', 'reactionner': '', 'receiver': ''
}
nb_errors = self._run_daemons_modules(cfg_folder, tmp_folder, cfg_modules, 10)
self.kill_daemons()

assert nb_errors == 0, "Error logs raised!"
print("No error logs raised when daemons started and loaded the modules")

Expand All @@ -310,7 +312,6 @@ def test_daemons_modules_logs(self):
[1496076886] INFO: TIMEPERIOD TRANSITION: workhours;-1;1
"""
assert count >= 2
self.kill_daemons()

@pytest.mark.skipif(sys.version_info[:2] < (2, 7), reason="Not available for Python < 2.7")
def test_daemons_modules_logs_restart_module(self):
Expand Down

0 comments on commit 6b5c3d0

Please sign in to comment.