diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2015-01-06 09:44:00 +0000 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-01-06 09:44:00 +0000 |
commit | 155a092615de4005fe66e8187ec833045da3348a (patch) | |
tree | bafd87c3bd593ec42549e09763d6602c72b8dd73 | |
parent | f638202fcf8808f8eec2387155982711f92c6d52 (diff) | |
parent | eaba469c08e6c4406704eb08aeb8e4e5650ea072 (diff) | |
download | pygn-155a092615de4005fe66e8187ec833045da3348a.tar.gz |
Merge branch 'vs2013' into 'master'
Vs2013
See merge request !2
-rw-r--r-- | .gitignore | 7 | ||||
-rwxr-xr-x | test/test_pyg.py | 10 |
2 files changed, 10 insertions, 7 deletions
@@ -1,8 +1,9 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ build/ -wlp_c/commands.tab.* -wlp_c/lex.yy.c *.pyc -wlp.so pygn.egg-info/ dist/ pyg.log +*.suo diff --git a/test/test_pyg.py b/test/test_pyg.py index 4c1c1c0..e6b8fca 100755 --- a/test/test_pyg.py +++ b/test/test_pyg.py @@ -28,9 +28,10 @@ one line test def test_m2n(self): with open('examples/mail') as in_mail: - pid = subprocess.Popen(['./pygm2n', '-Tv', '-n', 'pyg.test'], + pid = subprocess.Popen(['python', 'pygm2n', '-Tv', '-n', 'pyg.test'], stdin=subprocess.PIPE, - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, + universal_newlines=True) out, _ = pid.communicate(in_mail.read()) self.assertEqual(out, self.expected_output) @@ -58,11 +59,12 @@ Resent-Sender: sender@example.com def test_n2m(self): with open('examples/articletest.accepted') as in_mail: - pid = subprocess.Popen(['./pygn2m', '-Tvt', 'test@example.com', + pid = subprocess.Popen(['python', 'pygn2m', '-Tvt', 'test@example.com', '-s', 'sender@example.com', '-w', 'examples/whitelist.example'], stdin=subprocess.PIPE, - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, + universal_newlines=True) in_message = in_mail.read().replace('pyg@pyg.server.tld', 'kame@inwind.it') out, err = pid.communicate(in_message) |