PeteHaitch / methtuple

methtuple is a methylation caller for methylation events that co-occur on the same DNA fragment from high-throughput bisulfite sequencing data, such as methylC-seq.
MIT License
12 stars 3 forks source link

python setup.py test has exit status 1 #63

Closed PeteHaitch closed 10 years ago

PeteHaitch commented 10 years ago

Why?

PeteHaitch commented 10 years ago

Exit status = 0

Peters-MacBook-Pro:a Peter$ python comethylation/tests/__init__.py 
test_deletion (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_diff (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_equal (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_hard_clip (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_insertion (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_pad (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_ref_skip (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_simple_cigar (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_soft_clip (__main__.TestDoesReadContainComplicatedCigar) ... ok
test_deletion (__main__.TestDoesReadContainIndel) ... ok
test_insertion (__main__.TestDoesReadContainIndel) ... ok
test_no_indel (__main__.TestDoesReadContainIndel) ... ok
test_correct_m_tuple_ids (__main__.TestExtractAndUpdateMethylationIndexFromPairedEndReads) ... ok
test_correct_methylation_type (__main__.TestExtractAndUpdateMethylationIndexFromPairedEndReads) ... ok
test_correct_number_of_m_tuples (__main__.TestExtractAndUpdateMethylationIndexFromPairedEndReads) ... ok
test_correct_number_of_methylation_loci_in_fragment (__main__.TestExtractAndUpdateMethylationIndexFromPairedEndReads) ... ok
test_counts (__main__.TestExtractAndUpdateMethylationIndexFromPairedEndReads) ... ok
test_correct_m_tuple_ids (__main__.TestExtractAndUpdateMethylationIndexFromSingleEndRead) ... ok
test_correct_methylation_type (__main__.TestExtractAndUpdateMethylationIndexFromSingleEndRead) ... ok
test_correct_number_of_m_tuples (__main__.TestExtractAndUpdateMethylationIndexFromSingleEndRead) ... ok
test_correct_number_of_methylation_loci_in_fragment (__main__.TestExtractAndUpdateMethylationIndexFromSingleEndRead) ... ok
test_counts (__main__.TestExtractAndUpdateMethylationIndexFromSingleEndRead) ... ok
test_fix_old_bismark (__main__.TestFixOldBismark) ... ok
test_ctob_pe (__main__.TestGetStrand) ... ok
test_ctob_se (__main__.TestGetStrand) ... ok
test_ctot_pe (__main__.TestGetStrand) ... ok
test_ctot_se (__main__.TestGetStrand) ... ok
test_ob_pe (__main__.TestGetStrand) ... ok
test_ob_se (__main__.TestGetStrand) ... ok
test_ot_pe (__main__.TestGetStrand) ... ok
test_ot_se (__main__.TestGetStrand) ... ok
test__ignore_one (__main__.TestIgnoreFirstNBases) ... ok
test_bad_n (__main__.TestIgnoreFirstNBases) ... ok
test_ignore_all (__main__.TestIgnoreFirstNBases) ... ok
test_n_0 (__main__.TestIgnoreFirstNBases) ... ok
test_n_off_by_one (__main__.TestIgnoreFirstNBases) ... ok
test_bad_n (__main__.TestIgnoreLastNBases) ... ok
test_ignore_all (__main__.TestIgnoreLastNBases) ... ok
test_ignore_one (__main__.TestIgnoreLastNBases) ... ok
test_n_0 (__main__.TestIgnoreLastNBases) ... ok
test_n_off_by_one (__main__.TestIgnoreLastNBases) ... ok
test_all_fail_low_qual_filter (__main__.TestIgnoreLowQualityBases) ... ok
test_bad_min_qual (__main__.TestIgnoreLowQualityBases) ... ok
test_bad_phred_offset (__main__.TestIgnoreLowQualityBases) ... ok
test_no_low_qual_filter (__main__.TestIgnoreLowQualityBases) ... ok
test_some_fail_low_qual_filter (__main__.TestIgnoreLowQualityBases) ... ok
test_XM (__main__.TestIgnoreOverlappingSequence) ... ok
test_bad_n_overlap (__main__.TestIgnoreOverlappingSequence) ... ok
test_bad_overlap_check (__main__.TestIgnoreOverlappingSequence) ... ok
test_bismark (__main__.TestIgnoreOverlappingSequence) ... ok
test_quality (__main__.TestIgnoreOverlappingSequence) ... ok
test_sequence (__main__.TestIgnoreOverlappingSequence) ... ok
test_XM (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_bad_n_overlap (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_bad_overlap_check (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_bismark (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_invalid_strands (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_n_overlap (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_quality (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_sequence (__main__.TestIsOverlappingSequenceIdentical) ... ok
test_increment_count_ctob_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ctob_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ctot_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ctot_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_multiple_methylation_types_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_multiple_methylation_types_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ob_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ob_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ot_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_increment_count_ot_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_init_pe (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_init_se (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_invalid_comethylation_state (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_invalid_m (__main__.TestWithinFragmentComethylationMTuple) ... ok
test_invalid_methylation_type (__main__.TestWithinFragmentComethylationMTuple) ... ok

----------------------------------------------------------------------
Ran 75 tests in 0.140s

OK
Peters-MacBook-Pro:a Peter$ echo $?
0

Exit status 1

Peters-MacBook-Pro:a Peter$ python setup.py test
running test
running egg_info
writing requirements to comethylation.egg-info/requires.txt
writing comethylation.egg-info/PKG-INFO
writing top-level names to comethylation.egg-info/top_level.txt
writing dependency_links to comethylation.egg-info/dependency_links.txt
reading manifest file 'comethylation.egg-info/SOURCES.txt'
writing manifest file 'comethylation.egg-info/SOURCES.txt'
running build_ext
error: None
Peters-MacBook-Pro:a Peter$ echo $?
1
PeteHaitch commented 10 years ago

Removing create_test_data.py from the tests/ directory fixed this (this script was no longer required in any case). I presume this fixed it because there was some name clash with "test" being in the filename.