Skip to content

Commit e94429c

Browse files
committed
[nginxctl/tests/test_parser.py,requirements.txt] Fix Python 2.7 support
1 parent 88b9df4 commit e94429c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nginxctl/tests/test_parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222

2323
class TestParser(TestCase, object):
24-
__name__ = (ast.Str if sys.version_info[0] == 2 else ast.Constant)('TestParser')
2524
maxDiff = 1200
2625

2726
def setUp(self):
@@ -48,7 +47,7 @@ def setUp(self):
4847
def tearDown(self):
4948
rmtree(self.temp_dir)
5049

51-
@unittest.skip
50+
@unittest.skip('')
5251
def test_filter_map_block(self):
5352
pp(self.nginx_conf_parse)
5453
for config in self.nginx_conf_parse["config"]:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
crossplane
22
boltons
3-
pyyaml
3+
pyyaml!=6.0.0,!=5.4.0,!=5.4.1
44
meta

0 commit comments

Comments
 (0)