Fix code style issue

This commit is contained in:
Roman Mogylatov 2020-06-24 21:23:05 -04:00
parent ad2d8155d4
commit 65db4f2b1d
2 changed files with 2873 additions and 2870 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
import contextlib import contextlib
import os import os
import sys
import tempfile import tempfile
import unittest2 as unittest import unittest2 as unittest
@ -413,6 +414,7 @@ class ConfigFromYamlTests(unittest.TestCase):
os.unlink(self.config_file_1) os.unlink(self.config_file_1)
os.unlink(self.config_file_2) os.unlink(self.config_file_2)
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'PyYAML does not support Python 3.4')
def test(self): def test(self):
self.config.from_yaml(self.config_file_1) self.config.from_yaml(self.config_file_1)
@ -422,6 +424,7 @@ class ConfigFromYamlTests(unittest.TestCase):
self.assertEqual(self.config.section2(), {'value2': 2}) self.assertEqual(self.config.section2(), {'value2': 2})
self.assertEqual(self.config.section2.value2(), 2) self.assertEqual(self.config.section2.value2(), 2)
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'PyYAML does not support Python 3.4')
def test_merge(self): def test_merge(self):
self.config.from_yaml(self.config_file_1) self.config.from_yaml(self.config_file_1)
self.config.from_yaml(self.config_file_2) self.config.from_yaml(self.config_file_2)