Repository: enthought/okonomiyaki

Issue:
MetadataVersion object should not be repr()'d in exception message
```python
'cpython-2.7.9+1-rh5_x86_64-gnu.runtime': No support for language 'whitespace' ('MetadataVersion(1, 0)')
```

https://github.com/enthought/okonomiyaki/blob/master/okonomiyaki/runtimes/runtime_metadata.py#L212

Discussion:

Patch:
diff --git a/okonomiyaki/runtimes/runtime_metadata.py b/okonomiyaki/runtimes/runtime_metadata.py
index ed9d415..d103630 100644
--- a/okonomiyaki/runtimes/runtime_metadata.py
+++ b/okonomiyaki/runtimes/runtime_metadata.py
@@ -209,7 +209,7 @@ def runtime_metadata_factory(path_or_file):
     key = _factory_key_from_metadata(json_dict)
     klass = _METADATA_KLASS_FACTORY.get(key)
     if klass is None:
-        msg = "No support for language '{1}' ('{0!r}')".format(*key)
+        msg = "No support for language '{1}' (metadata version '{0}')".format(*key)
         raise UnsupportedMetadata(key[0], msg)
     else:
         return klass._from_path(path_or_file)


Test patch:
diff --git a/okonomiyaki/runtimes/tests/test_runtime_metadata.py b/okonomiyaki/runtimes/tests/test_runtime_metadata.py
index 1fc8f65..1a3c660 100644
--- a/okonomiyaki/runtimes/tests/test_runtime_metadata.py
+++ b/okonomiyaki/runtimes/tests/test_runtime_metadata.py
@@ -203,7 +203,7 @@ class TestRuntimeMetadataFactory(unittest.TestCase):
         # When/Then
         with self.assertRaisesRegexp(
                 UnsupportedMetadata,
-                r"^No support for language 'r' \('MetadataVersion\(1, 0\)'\)"):
+                r"^No support for language 'r' \(metadata version '1.0'\)"):
             runtime_metadata_factory(path)
 
         # Given