diff options
| author | Pranay Suresh <psuresh@teslamotors.com> | 2016-04-10 13:45:08 -0700 |
|---|---|---|
| committer | Pranay Suresh <psuresh@teslamotors.com> | 2016-04-10 13:45:08 -0700 |
| commit | b8d636f2fa9ac4ebe1e6bf7c9ad8890f26acf89d (patch) | |
| tree | 603c657024698fa6566afc31c8d36cbb8fe11abe /webtest | |
| parent | cfdbc9cca2f812c25739830ac4aa8a00f42e99c6 (diff) | |
| download | webtest-b8d636f2fa9ac4ebe1e6bf7c9ad8890f26acf89d.tar.gz | |
make sure str and text_type are checked
Diffstat (limited to 'webtest')
| -rw-r--r-- | webtest/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/app.py b/webtest/app.py index affa69d..b3012cd 100644 --- a/webtest/app.py +++ b/webtest/app.py @@ -206,7 +206,7 @@ class TestApp(object): val = b64encode(to_bytes(val)).strip() val = val.decode('latin1') elif authtype == 'Bearer' and val and \ - isinstance(val, text_type): + isinstance(val, (str, text_type)): val = val.strip() else: raise ValueError(invalid_value) |
