mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
Functions annotated with `NoReturn` and `Never` now taken into account in the Control Flow Graph building process, and the code after calling such functions is treated as unreachable. Merge-request: IJ-MR-105973 Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com> GitOrigin-RevId: ef5840ae6e593498fc334dc9bd2daadccebf2b13
10 lines
240 B
Python
10 lines
240 B
Python
import unittest
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
|
|
def test_is_ok(self):
|
|
str = get_response()
|
|
if isinstance(str, int):
|
|
self.fail()
|
|
print("Not a string!")
|
|
self.assert_(str, "OK") |