def test_metadata_merging_conflict_exception():
 data1 = ExampleData()
 data2 = ExampleData()
 data1.meta['somekey'] = {'x': 1, 'y': 1}
 data2.meta['somekey'] = {'x': 1, 'y': 999}
 with pytest.raises(MergeConflictError):
  merge(data1.meta, data2.meta, metadata_conflicts='error')

def test_metadata_merging_conflict_exception ( ) : data1 = ExampleData ( ) data2 = ExampleData ( ) data1 . meta [ 'somekey' ] = { 'x' : 1 , 'y' : 1 } data2 . meta [ 'somekey' ] = { 'x' : 1 , 'y' : 999 } with pytest . raises ( MergeConflictError ) : merge ( data1 . meta , data2 . meta , metadata_conflicts = 'error' )
regression test for issue #3294 .