mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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()
|
||||
Reference in New Issue
Block a user