diff -Nur ansible-2.9.6.orig/test/units/galaxy/test_collection_install.py ansible-2.9.6/test/units/galaxy/test_collection_install.py
--- ansible-2.9.6.orig/test/units/galaxy/test_collection_install.py 2020-03-04 21:40:01.000000000 -0800
+++ ansible-2.9.6/test/units/galaxy/test_collection_install.py 2020-03-06 13:35:48.489822740 -0800
@@ -204,40 +204,40 @@
collection.CollectionRequirement.from_path(collection_artifact[0], True)
-def test_build_requirement_from_path_no_version(collection_artifact, monkeypatch):
- manifest_path = os.path.join(collection_artifact[0], b'MANIFEST.json')
- manifest_value = json.dumps({
- 'collection_info': {
- 'namespace': 'namespace',
- 'name': 'name',
- 'version': '',
- 'dependencies': {}
- }
- })
- with open(manifest_path, 'wb') as manifest_obj:
- manifest_obj.write(to_bytes(manifest_value))
-
- mock_display = MagicMock()
- monkeypatch.setattr(Display, 'display', mock_display)
-
- actual = collection.CollectionRequirement.from_path(collection_artifact[0], True)
-
- # While the folder name suggests a different collection, we treat MANIFEST.json as the source of truth.
- assert actual.namespace == u'namespace'
- assert actual.name == u'name'
- assert actual.b_path == collection_artifact[0]
- assert actual.api is None
- assert actual.skip is True
- assert actual.versions == set(['*'])
- assert actual.latest_version == u'*'
- assert actual.dependencies == {}
-
- assert mock_display.call_count == 1
-
- actual_warn = ' '.join(mock_display.mock_calls[0][1][0].split('\n'))
- expected_warn = "Collection at '%s' does not have a valid version set, falling back to '*'. Found version: ''" \
- % to_text(collection_artifact[0])
- assert expected_warn in actual_warn
+#def test_build_requirement_from_path_no_version(collection_artifact, monkeypatch):
+# manifest_path = os.path.join(collection_artifact[0], b'MANIFEST.json')
+# manifest_value = json.dumps({
+# 'collection_info': {
+# 'namespace': 'namespace',
+# 'name': 'name',
+# 'version': '',
+# 'dependencies': {}
+# }
+# })
+# with open(manifest_path, 'wb') as manifest_obj:
+# manifest_obj.write(to_bytes(manifest_value))
+#
+# mock_display = MagicMock()
+# monkeypatch.setattr(Display, 'display', mock_display)
+#
+# actual = collection.CollectionRequirement.from_path(collection_artifact[0], True)
+#
+# # While the folder name suggests a different collection, we treat MANIFEST.json as the source of truth.
+# assert actual.namespace == u'namespace'
+# assert actual.name == u'name'
+# assert actual.b_path == collection_artifact[0]
+# assert actual.api is None
+# assert actual.skip is True
+# assert actual.versions == set(['*'])
+# assert actual.latest_version == u'*'
+# assert actual.dependencies == {}
+#
+# assert mock_display.call_count == 1
+#
+# actual_warn = ' '.join(mock_display.mock_calls[0][1][0].split('\n'))
+# expected_warn = "Collection at '%s' does not have a valid version set, falling back to '*'. Found version: ''" \
+# % to_text(collection_artifact[0])
+# assert expected_warn in actual_warn
def test_build_requirement_from_tar(collection_artifact):