test_platform fails on darwin because platform.platform is defined as "win32" or"linux"

Bug #1030145 reported by Mike McCracken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
New
Undecided
Diego Sarmentero

Bug Description

in ubuntuone/platform/__init__.py, platform is set to either 'win32' or 'linux'.

in test_platform, this is tested against sys.platform to check that we can import ubuntuone.platform...

thus, this test fails on darwin.

however, the only place this is actually used is in ActionQueue.authenticate(), which sends it as metadata to the server.

It'd be nice to avoid slightly redefining sys.platform - is it important that the server be sent "linux" instead of "linux2" from ActionQueue?

Roberto Alsina (ralsina)
Changed in ubuntuone-client:
assignee: Roberto Alsina (ralsina) → Diego Sarmentero (diegosarmentero)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.