diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-31 21:19:08 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-31 21:19:08 -0400 |
| commit | d7fa79844c812e2967ae4fd94b4c4bf703c0a0c7 (patch) | |
| tree | a6863ac49f8001809948d971416606764d094cab | |
| parent | 6441714f3811d5a9852052455401439c1c4c4db3 (diff) | |
| download | python-setuptools-git-d7fa79844c812e2967ae4fd94b4c4bf703c0a0c7.tar.gz | |
👹 Feed the hobgoblins (delint).
| -rw-r--r-- | distutils/tests/test_cygwinccompiler.py | 2 | ||||
| -rw-r--r-- | distutils/tests/test_dist.py | 6 | ||||
| -rw-r--r-- | distutils/tests/test_extension.py | 4 | ||||
| -rw-r--r-- | distutils/tests/test_install.py | 4 | ||||
| -rw-r--r-- | distutils/tests/test_msvc9compiler.py | 2 | ||||
| -rw-r--r-- | distutils/tests/test_upload.py | 2 | ||||
| -rw-r--r-- | distutils/text_file.py | 1 |
7 files changed, 10 insertions, 11 deletions
diff --git a/distutils/tests/test_cygwinccompiler.py b/distutils/tests/test_cygwinccompiler.py index 7eebd9ba..b14ddb40 100644 --- a/distutils/tests/test_cygwinccompiler.py +++ b/distutils/tests/test_cygwinccompiler.py @@ -87,7 +87,7 @@ class CygwinCCompilerTestCase(support.TempdirManager, unittest.TestCase): '2.6.1 (r261:67515, Dec 6 2008, 16:42:21) ' '\n[GCC 4.0.1 (Apple Computer, Inc. build 5370)]' ) - assert get_msvcr() == None + assert get_msvcr() is None # MSVC 7.0 sys.version = ( diff --git a/distutils/tests/test_dist.py b/distutils/tests/test_dist.py index 8c6fd709..dd3db860 100644 --- a/distutils/tests/test_dist.py +++ b/distutils/tests/test_dist.py @@ -227,7 +227,7 @@ class DistributionTestCase( def test_get_command_packages(self): dist = Distribution() - assert dist.command_packages == None + assert dist.command_packages is None cmds = dist.get_command_packages() assert cmds == ['distutils.command'] assert dist.command_packages == ['distutils.command'] @@ -548,6 +548,6 @@ class MetadataTestCase(support.TempdirManager, unittest.TestCase): assert metadata.description == "xxx" assert metadata.download_url == 'http://example.com' assert metadata.keywords == ['one', 'two'] - assert metadata.platforms == None - assert metadata.obsoletes == None + assert metadata.platforms is None + assert metadata.obsoletes is None assert metadata.requires == ['foo'] diff --git a/distutils/tests/test_extension.py b/distutils/tests/test_extension.py index 67de503f..271c2459 100644 --- a/distutils/tests/test_extension.py +++ b/distutils/tests/test_extension.py @@ -93,8 +93,8 @@ class ExtensionTestCase(unittest.TestCase): ): assert getattr(ext, attr) == [] - assert ext.language == None - assert ext.optional == None + assert ext.language is None + assert ext.optional is None # if there are unknown keyword options, warn about them with check_warnings() as w: diff --git a/distutils/tests/test_install.py b/distutils/tests/test_install.py index e4a38ea4..519227d2 100644 --- a/distutils/tests/test_install.py +++ b/distutils/tests/test_install.py @@ -167,9 +167,9 @@ class InstallTestCase( # none dist.extra_path = cmd.extra_path = None cmd.handle_extra_path() - assert cmd.extra_path == None + assert cmd.extra_path is None assert cmd.extra_dirs == '' - assert cmd.path_file == None + assert cmd.path_file is None # three elements (no way !) cmd.extra_path = 'path,dirs,again' diff --git a/distutils/tests/test_msvc9compiler.py b/distutils/tests/test_msvc9compiler.py index 3cfd3ac9..29c5530b 100644 --- a/distutils/tests/test_msvc9compiler.py +++ b/distutils/tests/test_msvc9compiler.py @@ -138,7 +138,7 @@ class msvc9compilerTestCase(support.TempdirManager, unittest.TestCase): HKCU = winreg.HKEY_CURRENT_USER keys = Reg.read_keys(HKCU, 'xxxx') - assert keys == None + assert keys is None keys = Reg.read_keys(HKCU, r'Control Panel') assert 'Desktop' in keys diff --git a/distutils/tests/test_upload.py b/distutils/tests/test_upload.py index 2ec1d534..e5c66496 100644 --- a/distutils/tests/test_upload.py +++ b/distutils/tests/test_upload.py @@ -105,7 +105,7 @@ class uploadTestCase(BasePyPIRCCommandTestCase): dist = Distribution() cmd = upload(dist) cmd.finalize_options() - assert cmd.password == None + assert cmd.password is None # make sure we get it as well, if another command # initialized it at the dist level diff --git a/distutils/text_file.py b/distutils/text_file.py index 44c0f27f..7274d4b1 100644 --- a/distutils/text_file.py +++ b/distutils/text_file.py @@ -5,7 +5,6 @@ that (optionally) takes care of stripping comments, ignoring blank lines, and joining lines with backslashes.""" import sys -import io class TextFile: |
