Skip to content

Commit

Permalink
Fix a test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Jan 29, 2014
1 parent 8da94e7 commit ca36e3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ def test_pkgs_dir_prefix(self):
for pi, po in [
(root_dir, root_pkgs),
(join(root_dir, 'envs', 'foo'), root_pkgs),
('/usr/local/foo', '/usr/local/.pkgs'),
]:
self.assertEqual(config.pkgs_dir_prefix(pi), po)

if config.platform == 'win':
self.assertEqual(config.pkgs_dir_prefix(r'C:\usr\local\foo'), r'C:\usr\local\.pkgs')
else:
self.assertEqual(config.pkgs_dir_prefix('/usr/local/foo'), '/usr/local/.pkgs')

def test_proxy_settings(self):
self.assertEqual(config.get_proxy_servers(),
{'http': 'http://user:[email protected]:8080',
Expand Down

0 comments on commit ca36e3d

Please sign in to comment.