diff options
author | Nobuaki Sukegawa <nsuke@apache.org> | 2016-02-28 11:28:19 +0900 |
---|---|---|
committer | Nobuaki Sukegawa <nsuke@apache.org> | 2016-02-28 12:05:14 +0900 |
commit | d479e23a1d408ab73e416f547003c4f7d9975081 (patch) | |
tree | 9e919c0f372fb01f8029fd06fbe1180b4f5d5bd5 /test/py.twisted | |
parent | 2c5ed27a25087f541312d35938056890c4784fc6 (diff) | |
download | thrift-d479e23a1d408ab73e416f547003c4f7d9975081.tar.gz |
THRIFT-3691 Run flake8 Python style check on Travis-CI
Client: Build (Python)
Patch: Nobuaki Sukegawa
This closes #907
Diffstat (limited to 'test/py.twisted')
-rw-r--r-- | test/py.twisted/setup.cfg | 3 | ||||
-rwxr-xr-x | test/py.twisted/test_suite.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/test/py.twisted/setup.cfg b/test/py.twisted/setup.cfg new file mode 100644 index 000000000..ae587c4f4 --- /dev/null +++ b/test/py.twisted/setup.cfg @@ -0,0 +1,3 @@ +[flake8] +ignore = E402 +max-line-length = 100 diff --git a/test/py.twisted/test_suite.py b/test/py.twisted/test_suite.py index 3a59bb1f1..43149a4c9 100755 --- a/test/py.twisted/test_suite.py +++ b/test/py.twisted/test_suite.py @@ -113,9 +113,8 @@ class ThriftTestCase(unittest.TestCase): self.processor = ThriftTest.Processor(self.handler) self.pfactory = TBinaryProtocol.TBinaryProtocolFactory() - self.server = reactor.listenTCP(0, - TTwisted.ThriftServerFactory(self.processor, - self.pfactory), interface="127.0.0.1") + self.server = reactor.listenTCP( + 0, TTwisted.ThriftServerFactory(self.processor, self.pfactory), interface="127.0.0.1") self.portNo = self.server.getHost().port |