Skip to content

Commit 0251db1

Browse files
author
clowwindy
committed
add more tests
1 parent 13163f4 commit 0251db1

File tree

3 files changed

+6
-48
lines changed

3 files changed

+6
-48
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ python:
55
before_install:
66
- sudo apt-get update -qq
77
- sudo apt-get install -qq dnsutils build-essential
8-
- pip install shadowsocks
8+
- pip install shadowsocks pep8 pyflakes
99
script:
10+
- pep8 .
11+
- pyflakes .
1012
- python test.py -c tests/facebook.com
1113
- python test.py -c tests/google.com
1214
- python test.py -c tests/twitter.com

py2exe_setup.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
r, w, e = select.select(fdset, [], fdset)
2323
if e:
2424
break
25-
25+
2626
for fd in r:
2727
line = fd.readline()
2828
sys.stdout.write(line)
@@ -32,7 +32,7 @@
3232
if local_ready and p2 is None:
3333
p2 = Popen(dig_cmd.split(), shell=False, bufsize=0, close_fds=True)
3434
break
35-
35+
3636
if p2 is not None:
3737
r = p2.wait()
3838
if r == 0:
@@ -45,5 +45,5 @@
4545
os.kill(p.pid, signal.SIGTERM)
4646
except OSError:
4747
pass
48-
48+
4949
sys.exit(-1)

0 commit comments

Comments
 (0)