Open eclipseo opened 1 year ago
__________ TestFileTypesDataDriven.test_filetest_media_image1_tif_119 __________
args = (<test_types.TestFileTypesDataDriven object at 0x7f2558571220>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'TIFF image data, little-endian, direntries=14, height=1, bps=1, compression=LZW, PhotometricInterpretation=BlackIsZero, width=1', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'TIFF image data, little-endian, direntries=14, height=1, bps=1, compression=LZW, Photom...dia/Image1.tif.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.tif'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'TIFF image data, little-endian, direntries=14, height=1, bps=1, compression=LZW, PhotometricInterpretation=BlackIsZero, width=1', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.t...a, little-endian, direntries=14, height=1, bps=1, compression=LZW, PhotometricIntepretation=BlackIsZero, width=1', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te...width=1', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif..._file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.tif'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te...width=1', ...}\n~Omitting 38 identical items, use -vv to sho..._file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.tif'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te...width=1', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'TIFF image data, little-endian, direntries=14, height=1, bps=1, compression=LZW, PhotometricInterpretation=BlackIsZero, width=1'} != {'filetype_file': 'TIFF image data, little-endian, direntries=14, height=1, bps=1, compression=LZW, PhotometricIntepretation=BlackIsZero, width=1'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.tif.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Image1.tif'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
__________ TestFileTypesDataDriven.test_filetest_media_movie_wmv_121 ___________
args = (<test_types.TestFileTypesDataDriven object at 0x7f2558571520>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Numbe...media/Movie.wmv.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wmv'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wm...20, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...t_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wmv'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to sho...t_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wmv'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object'} != {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Number of channel...ght 120, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wmv.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie.wmv'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
________ TestFileTypesDataDriven.test_filetest_media_movie_0001_wmv_122 ________
args = (<test_types.TestFileTypesDataDriven object at 0x7f25585712e0>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Numbe...e_0001.wmv.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0001.wmv'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_00... correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object ASF_Index_Object ASF_Index_Object', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...e': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0001.wmv'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to sho...e': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0001.wmv'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object'} != {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Number of channel...Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object ASF_Index_Object ASF_Index_Object'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0001.wmv.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0001.wmv'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
________ TestFileTypesDataDriven.test_filetest_media_movie_0002_wmv_123 ________
args = (<test_types.TestFileTypesDataDriven object at 0x7f25585713d0>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Numbe...e_0002.wmv.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0002.wmv'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_00...60, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...e': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0002.wmv'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to sho...e': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0002.wmv'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object'} != {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Number of channel...ght 160, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0002.wmv.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/Movie_0002.wmv'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
____________ TestFileTypesDataDriven.test_filetest_media_a_avi_129 _____________
args = (<test_types.TestFileTypesDataDriven object at 0x7f25585704a0>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'Microsoft ASF, Video Media (Encoded Image Width 1680, Encoded Image Height 1050, Image ...iletest/media/a.avi.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi.ym...50, Image Width 1680, Image Height 1050, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction)', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te...ection)', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te...ection)', ...}\n~Omitting 38 identical items, use -vv to sho...'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te...ection)', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'Microsoft ASF'} != {'filetype_file': 'Microsoft ASF, Video Media (Encoded Image Width 1680, Encoded Image Height 1050, Image Width 1680, Image Height 1050, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction)'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a.avi'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
____________ TestFileTypesDataDriven.test_filetest_media_a4_mp4_138 ____________
args = (<test_types.TestFileTypesDataDriven object at 0x7f2558a6fb30>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]', 'mimetype_file': 'video/mp4', 'mimet...etest/media/a4.mp4.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4.yml', 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}\n~Omitting 38 identical items, use -vv to sho...test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]'} != {'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mp4'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
____________ TestFileTypesDataDriven.test_filetest_media_a4_mpg_139 ____________
args = (<test_types.TestFileTypesDataDriven object at 0x7f2558570c20>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]', 'mimetype_file': 'video/mp4', 'mimet...etest/media/a4.mpg.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg.yml', 'elf_type': '', 'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}\n~Omitting 38 identical items, use -vv to sho...test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te...2:2003]', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'ISO Media, MP4 Base Media v1 [ISO 14496-12:2003]'} != {'filetype_file': 'ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/a4.mpg'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
_________ TestFileTypesDataDriven.test_filetest_media_mov_wvm_wmv_141 __________
args = (<test_types.TestFileTypesDataDriven object at 0x7f25585705c0>,)
kwargs = {}
results = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
expected = OrderedDict({'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Numbe...a/mov.wvm.wmv.yml', 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm.wmv'})
passing = False
@py_assert2 = {'contains_text': False, 'elf_type': '', 'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object', 'filetype_pygment': '', ...}
@py_assert7 = {'contains_text': False, 'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm....20, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object', ...}
@py_assert4 = False
@py_format9 = "{'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to show\n~Dif...file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm.wmv'}\n~Use -v to get more diff"
@py_format11 = "assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}\n~Omitting 38 identical items, use -vv to sho...file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm.wmv'}\n~Use -v to get more diff"
def closure_test_function(*args, **kwargs):
results = get_type(test_file).to_dict(include_date=False)
if regen:
for key, value in results.items():
setattr(test, key, value)
test.dump()
expected = test.to_dict(filter_empty=False, filter_extra=True)
passing = check_types_equal(expected, results)
# this is done to display slightly eaier to handle error traces
if not passing:
expected['data file'] = 'file://' + data_file
expected['test_file'] = 'file://' + test_file
> assert dict(results) == dict(expected)
E AssertionError: assert {'contains_te...ent': '', ...} == {'contains_te..._Object', ...}
E Omitting 38 identical items, use -vv to show
E Differing items:
E {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object'} != {'filetype_file': 'Microsoft ASF ASF_Extended_Content_Description_Object, Audio Media (Codec Id 353, Number of channel...ght 120, Bits Per Pixel Count 24, Error correction type ASF_No_Error_Correction) ASF_Stream_Bitrate_Properties_Object'}
E Right contains 2 more items:
E {'data file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm.wmv.yml',
E 'test_file': 'file:///builddir/build/BUILD/typecode-30.0.1/tests/data/filetest/media/mov.wvm.wmv'}
E Use -v to get more diff
tests/filetype_test_utils.py:216: AssertionError
=============================== warnings summary ===============================
src/typecode/pygments_lexers.py::typecode.pygments_lexers.guess_lexer_for_filename
/usr/lib/python3.12/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
src/typecode/pygments_lexers.py::typecode.pygments_lexers.guess_lexer_for_filename
src/typecode/pygments_lexers.py::typecode.pygments_lexers.guess_lexer_for_filename
src/typecode/pygments_lexers.py::typecode.pygments_lexers.guess_lexer_for_filename
src/typecode/pygments_lexers.py::typecode.pygments_lexers.guess_lexer_for_filename
/usr/lib/python3.12/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
tests/test_contenttype.py: 21 warnings
tests/test_types.py: 162 warnings
/usr/lib/python3.12/site-packages/commoncode/filetype.py:167: DeprecationWarning: datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.fromtimestamp(timestamp, datetime.UTC).
datetime.utcfromtimestamp(os.path.getmtime(location))
tests/test_contenttype.py::TestContentTypeComplex::test_symbolink_links
/usr/lib64/python3.12/tarfile.py:2213: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_contenttype.py::TestContentTypeComplex::test_compiled_python_1
FAILED tests/test_contenttype.py::TestContentTypeComplex::test_doc_postscript_eps
FAILED tests/test_contenttype.py::TestContentTypeComplex::test_package_debian
FAILED tests/test_contenttype.py::TestContentTypeComplex::test_package_json
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_binary_windows_dll_24
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_build_ar_er_css_map_27
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_build_ar_er_js_map_28
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_certificate_eclipse_rsa_35
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_code_scala_applicative_scala_62
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_compiled_win_file_exe_68
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_compiled_win_zlib1_dll_69
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_data_mysql_arch_74
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_data_nulls_txt_78
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_doc_pdf_notpdf_pdf_94
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_image_ascii_pgm_101
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_image1_pbm_112
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_image1_tga_118
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_image1_tif_119
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_movie_wmv_121
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_movie_0001_wmv_122
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_movie_0002_wmv_123
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_a_avi_129
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_a4_mp4_138
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_a4_mpg_139
FAILED tests/test_types.py::TestFileTypesDataDriven::test_filetest_media_mov_wvm_wmv_141
XFAIL tests/test_contenttype.py::TestContentTypeComplex::test_text_rsync_file_is_not_octet_stream - reason:
====== 25 failed, 166 passed, 1 skipped, 1 xfailed, 189 warnings in 3.74s ======
@eclipseo Thanks... all these failures are because of small or big changes and bug fixes in libmagic. There is no way around this than to fix theses to match old and new libmagic versions within reason and/or update the minimal version of libmagic we bundle and support too.
Environment:
So after managing to plug ibmagic into this, a lot of assertions are failing: