mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
14 lines
420 B
Python
14 lines
420 B
Python
"""Test that a global import which is redefined locally, but used later in another scope does not generate a warning."""
|
|
|
|
import unittest, transport
|
|
|
|
|
|
class GetTransportTestCase(unittest.TestCase):
|
|
def test_get_transport(self):
|
|
transport = 'transport'
|
|
self.assertIsNotNone(transport)
|
|
|
|
|
|
class TestTransportMethodArgs(unittest.TestCase):
|
|
def test_send_defaults(self):
|
|
transport.Transport()
|