Skip to content
Snippets Groups Projects
Unverified Commit 32c9eeb5 authored by mirabilos's avatar mirabilos Committed by mirabilos
Browse files

drop shebang and “if __name__ == "__main__":” off individual tests

• doesn’t work right anyway, ever since test/util.py was imported
  relatively
• we have top-level ./test.py now, which works on 2.5+ and 3.x
parent fc31d373
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
# ~*~ coding: utf-8 ~*~
# Copyright © 2017
......@@ -37,6 +36,3 @@ class MusicXMLTests(unittest.TestCase):
with open(xmlfile, "rb") as f:
expected = f.read()
self.assertEqual(xml, expected[:-1])
if __name__ == "__main__":
unittest.main()
#!/usr/bin/env python
# ~*~ coding: utf-8 ~*~
# Copyright © 2017
......@@ -593,6 +592,3 @@ class ParserTests(TestCase):
res[1] = mml(input, _mmltrk=_getres)
self.assertEqual(res[0], expected_mml)
self.assertListEqual(round_sequence_r(res[1]), round_sequence_r(expected_lst))
if __name__ == "__main__":
unittest.main()
#!/usr/bin/env python
# ~*~ coding: utf-8 ~*~
# Copyright © 2017
......@@ -392,6 +391,3 @@ class PlaylistTests(TestCase):
(1.5296000000000001, [(1, 0), (2, 0), (4, 0)])])]
self.assertListEqual(round_sequence_r(res), round_sequence_r(expected))
self.assertEqual(errors, [])
if __name__ == "__main__":
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment