From 6d2a5072ca0851e37f7c529f27d13edfddc8c1dd Mon Sep 17 00:00:00 2001 From: aless10 Date: Sun, 19 May 2019 16:25:52 +0200 Subject: [PATCH] [add] add NORMALIZE_WHITESPACE and ELLIPSIS to pytest.ini and remove them from requests/__init__.py --- pytest.ini | 3 ++- requests/__init__.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 1f03c72f..13fa0000 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,2 +1,3 @@ [pytest] -addopts = -p no:warnings --doctest-modules \ No newline at end of file +addopts = -p no:warnings --doctest-modules +doctest_optionflags= NORMALIZE_WHITESPACE ELLIPSIS \ No newline at end of file diff --git a/requests/__init__.py b/requests/__init__.py index 8226e20f..3486f5e1 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -24,8 +24,6 @@ Basic GET usage: >>> payload = dict(key1='value1', key2='value2') >>> r = requests.post('https://httpbin.org/post', data=payload) >>> print(r.text) - ... # doctest: +ELLIPSIS - ... # doctest: +NORMALIZE_WHITESPACE { ... "form": {