summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-04-24 10:43:54 -0700
committerAnthony Sottile <asottile@umich.edu>2020-04-24 10:43:54 -0700
commit3b490bb3c5775fedca7167a98c5bf4aee5e171f7 (patch)
tree4e7b0e5e0d4b81f0e5911ae75952a6a27f406008 /tests
parent2cb1c65c99a7892b404d9b86771b598896343053 (diff)
downloadflake8-3b490bb3c5775fedca7167a98c5bf4aee5e171f7.tar.gz
Fix type='str' optparse options
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_option_manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_option_manager.py b/tests/unit/test_option_manager.py
index b97a9a6..f2ee4f9 100644
--- a/tests/unit/test_option_manager.py
+++ b/tests/unit/test_option_manager.py
@@ -303,6 +303,8 @@ def test_optparse_normalize_callback_option_legacy(optmanager):
('string', 'foo', 'foo'),
('float', '1.5', 1.5),
('complex', '1+5j', 1 + 5j),
+ # optparse allows this but does not document it
+ ('str', 'foo', 'foo'),
),
)
def test_optparse_normalize_types(optmanager, type_s, input_val, expected):