I'm stuck trying to understand this test failure (see also Travis logs). The code works for me by hand and my local machine cannot reproduce it. Is there a quick way I can duplicate the environment so that I can reproduce it?
_______________________ test_alternative_name_uniqueness _______________________
def test_alternative_name_uniqueness():
"""test the uniqueness of alternative field names"""
assert (len(sum(conf.fieldnames, [])) ==
len(set(sum(conf.fieldnames, []))))
E AssertionError: assert 133 == 132
E + where 133 = len(['targetname', 'id', 'Object', 'Target Identifier', 'i', 'inc', ...])
E + where ['targetname', 'id', 'Object', 'Target Identifier', 'i', 'inc', ...] = sum([['targetname', 'id', 'Object', 'Target Identifier'], ['i', 'inc', 'incl', 'Inclination'], ['epoch', 'datetime_jd', 'J...ng Node'], ['w', 'argper', 'Argument of the Periapsis'], ['r', 'rh', 'r_hel', 'heldist', 'Heliocentric Distance'], ...], [])
E + where [['targetname', 'id', 'Object', 'Target Identifier'], ['i', 'inc', 'incl', 'Inclination'], ['epoch', 'datetime_jd', 'J...ng Node'], ['w', 'argper', 'Argument of the Periapsis'], ['r', 'rh', 'r_hel', 'heldist', 'Heliocentric Distance'], ...] = <sbpy.data.Conf object at 0x7f036cf2c518>.fieldnames
E + and 132 = len({'AZ', 'Altitude', 'Argument of the Periapsis', 'Azimuth', 'D', 'DEC', ...})
E + where {'AZ', 'Altitude', 'Argument of the Periapsis', 'Azimuth', 'D', 'DEC', ...} = set(['targetname', 'id', 'Object', 'Target Identifier', 'i', 'inc', ...])
E + where ['targetname', 'id', 'Object', 'Target Identifier', 'i', 'inc', ...] = sum([['targetname', 'id', 'Object', 'Target Identifier'], ['i', 'inc', 'incl', 'Inclination'], ['epoch', 'datetime_jd', 'J...ng Node'], ['w', 'argper', 'Argument of the Periapsis'], ['r', 'rh', 'r_hel', 'heldist', 'Heliocentric Distance'], ...], [])
E + where [['targetname', 'id', 'Object', 'Target Identifier'], ['i', 'inc', 'incl', 'Inclination'], ['epoch', 'datetime_jd', 'J...ng Node'], ['w', 'argper', 'Argument of the Periapsis'], ['r', 'rh', 'r_hel', 'heldist', 'Heliocentric Distance'], ...] = <sbpy.data.Conf object at 0x7f036cf2c518>.fieldnames
sbpy/data/tests/test_dataclass.py:185: AssertionError
============== 1 failed, 236 passed, 48 skipped in 278.56 seconds ==============