Skip to content

Commit ce27fee

Browse files
committed
Changed version and fixed flake issues
1 parent 451e701 commit ce27fee

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

agent_packager/dictconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ def valid_ident(s):
1414
raise ValueError('Not a valid Python identifier: %r' % s)
1515
return True
1616

17-
#
17+
1818
# This function is defined in logging only in recent versions of Python
19-
#
2019
try:
2120
from logging import _checkLevel
2221
except ImportError:
@@ -538,6 +537,7 @@ def configure_root(self, config, incremental=False):
538537
root = logging.getLogger()
539538
self.common_logger_config(root, config, incremental)
540539

540+
541541
dictConfigClass = DictConfigurator
542542

543543

agent_packager/tests/test_agent_packager.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def venv(func):
4747
def execution_handler(*args, **kwargs):
4848
try:
4949
shutil.rmtree(TEST_VENV)
50-
except:
50+
except Exception:
5151
pass
5252
utils.make_virtualenv(TEST_VENV)
5353
func(*args, **kwargs)
@@ -60,16 +60,16 @@ class TestUtils(testtools.TestCase):
6060
def test_set_global_verbosity_level(self):
6161
lgr = init(base_level=logging.INFO)
6262

63-
with LogCapture() as l:
63+
with LogCapture() as log_cap:
6464
ap.set_global_verbosity_level(is_verbose_output=False)
6565
lgr.debug('TEST_LOGGER_OUTPUT')
66-
l.check()
66+
log_cap.check()
6767
lgr.info('TEST_LOGGER_OUTPUT')
68-
l.check(('user', 'INFO', 'TEST_LOGGER_OUTPUT'))
68+
log_cap.check(('user', 'INFO', 'TEST_LOGGER_OUTPUT'))
6969

7070
ap.set_global_verbosity_level(is_verbose_output=True)
7171
lgr.debug('TEST_LOGGER_OUTPUT')
72-
l.check(
72+
log_cap.check(
7373
('user', 'INFO', 'TEST_LOGGER_OUTPUT'),
7474
('user', 'DEBUG', 'TEST_LOGGER_OUTPUT'))
7575

@@ -263,9 +263,9 @@ def test_dryrun(self):
263263
'--no-validation': False,
264264
'--verbose': True
265265
}
266-
with LogCapture(level=logging.INFO) as l:
266+
with LogCapture(level=logging.INFO) as log_cap:
267267
e = self.assertRaises(SystemExit, cli._run, cli_options)
268-
l.check(('user', 'INFO', 'Dryrun complete'))
268+
log_cap.check(('user', 'INFO', 'Dryrun complete'))
269269
self.assertEqual(codes.notifications['dryrun_complete'], e.message)
270270

271271
@venv

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read(*parts):
1212

1313
setup(
1414
name='cloudify-agent-packager',
15-
version='4.0.0',
15+
version='4.2',
1616
url='https://github.com/cloudify-cosmo/cloudify-agent-packager',
1717
author='Gigaspaces',
1818
author_email='cosmo-admin@gigaspaces.com',

0 commit comments

Comments
 (0)