Merge lp:~mandel/ubuntu-sso-client/fix_732057 into lp:ubuntu-sso-client

Proposed by Manuel de la Peña
Status: Merged
Approved by: Manuel de la Peña
Approved revision: 710
Merged at revision: 688
Proposed branch: lp:~mandel/ubuntu-sso-client/fix_732057
Merge into: lp:ubuntu-sso-client
Prerequisite: lp:~mandel/ubuntu-sso-client/implement_windows_main_4
Diff against target: 38 lines (+4/-2)
2 files modified
ubuntu_sso/keyring/tests/test_windows.py (+2/-1)
ubuntu_sso/tests/test_credentials.py (+2/-1)
To merge this branch: bzr merge lp:~mandel/ubuntu-sso-client/fix_732057
Reviewer Review Type Date Requested Status
Shane Fagan (community) Approve
Natalia Bidart (community) Approve
Review via email: mp+54722@code.launchpad.net

This proposal supersedes a proposal from 2011-03-09.

Commit message

Fixed bug by using the os module so that the correct null fd is used according to the platform.

Description of the change

Fixed bug by using the os module.

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Looks good!

review: Approve
Revision history for this message
Shane Fagan (shanepatrickfagan) wrote :

Rechecked it and looking good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sso/keyring/tests/test_windows.py'
2--- ubuntu_sso/keyring/tests/test_windows.py 2011-03-16 14:48:56 +0000
3+++ ubuntu_sso/keyring/tests/test_windows.py 2011-03-24 16:15:55 +0000
4@@ -19,11 +19,12 @@
5 from json import dumps
6 from mocker import MockerTestCase
7 from twisted.internet.defer import inlineCallbacks
8+from twisted.trial.unittest import TestCase
9
10 from ubuntu_sso.keyring.windows import Keyring, USERNAME
11
12
13-class TestWindowsKeyring(MockerTestCase):
14+class TestWindowsKeyring(MockerTestCase, TestCase):
15 """Test the windows keyring implementation."""
16
17 def setUp(self):
18
19=== modified file 'ubuntu_sso/tests/test_credentials.py'
20--- ubuntu_sso/tests/test_credentials.py 2011-01-02 03:34:23 +0000
21+++ ubuntu_sso/tests/test_credentials.py 2011-03-24 16:15:55 +0000
22@@ -19,6 +19,7 @@
23 """Tests for the Credentials module."""
24
25 import logging
26+import os
27 import urllib
28
29 from twisted.internet import defer
30@@ -352,7 +353,7 @@
31 def faked_urlopen(request):
32 """Fake urlopener."""
33 self._request = request
34- response = urllib.addinfourl(fp=open('/dev/null'),
35+ response = urllib.addinfourl(fp=open(os.path.devnull),
36 headers=request.headers,
37 url=request.get_full_url(),
38 code=200)

Subscribers

People subscribed via source and target branches