projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial port to python3
[htsworkflow.git]
/
htsworkflow
/
pipelines
/
test
/
test_samplekey.py
diff --git
a/htsworkflow/pipelines/test/test_samplekey.py
b/htsworkflow/pipelines/test/test_samplekey.py
index ecd273dedd1c3eab53fc0c6b94b720ecadb5145f..80fcddeb7e8961fc1a98115579527f721ec389fd 100644
(file)
--- a/
htsworkflow/pipelines/test/test_samplekey.py
+++ b/
htsworkflow/pipelines/test/test_samplekey.py
@@
-1,8
+1,8
@@
#!/usr/bin/env python
"""More direct synthetic test cases for the eland output file processing
"""
#!/usr/bin/env python
"""More direct synthetic test cases for the eland output file processing
"""
-from
StringIO
import StringIO
-from unittest
2
import TestCase
+from
io
import StringIO
+from unittest import TestCase
from htsworkflow.pipelines.samplekey import SampleKey
from htsworkflow.pipelines.samplekey import SampleKey
@@
-44,12
+44,12
@@
class TestSampleKey(TestCase):
self.assertTrue(k3.matches(q3))
def suite():
self.assertTrue(k3.matches(q3))
def suite():
- from unittest
2
import TestSuite, defaultTestLoader
+ from unittest import TestSuite, defaultTestLoader
suite = TestSuite()
suite.addTests(defaultTestLoader.loadTestsFromTestCase(TestSampleKey))
return suite
if __name__ == "__main__":
suite = TestSuite()
suite.addTests(defaultTestLoader.loadTestsFromTestCase(TestSampleKey))
return suite
if __name__ == "__main__":
- from unittest
2
import main
+ from unittest import main
main(defaultTest="suite")
main(defaultTest="suite")