edx/edx-platform — pull request #1537 by wedaly (2013-10-30 13:32:21+00:00)
Title: Fixed test that was failing in Vagrant due to filesystem encoding mismatch

This test would fail on Vagrant images. Deep in the XML import process, Python gets the pathname and attempts to decode it using the filesystem encoding. On Vagrant, the paths are actually encoded using ISO Latin, but Python tries to decode them as UTF-8. This causes a failure when the expected failure string isn't found in the error messages.

This is a quick and dirty fix: just check that there's an error message about invalid characters.

@flowerhack can you confirm that this passes in your environment?