PY-23549: run files as scripts for py3 unittest (instead of "discovery" engine used for py2)

In Py3 it is possible to run script directly which is much more stable than discovery machinery
For example it supports hyphens in file names
This commit is contained in:
Ilya.Kazakevich
2017-04-16 00:26:09 +03:00
parent 8b62070a8c
commit a6038b0d72
3 changed files with 78 additions and 11 deletions
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# from falcon import testing
import unittest
# class TestAPI(testing.TestCase):
class TestAPI(unittest.TestCase):
def setUp(self):
super().setUp()
class TestCoverage(TestAPI):
def test_first(self):
self.assertTrue(1 == 1)
def test_second(self):
self.assertFalse(1 == 1)
if __name__ == '__main__':
unittest.main()