def test_easy_trigger_warning(self, tmpdir): folder = str(tmpdir) # this sequence shouldn't trigger a warning sequences = ([0, 1, 2, 3], [2, 3, 4, 5], [4, 5, 6, 7]) utop, fnames = build_trajectories(folder, sequences=sequences,) with no_warning(UserWarning): mda.Universe(utop._topology, fnames, continuous=True)