summaryrefslogtreecommitdiff
path: root/tests/test_discovery_sample
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2014-04-16 16:49:37 -0400
committerTim Graham <timograham@gmail.com>2014-04-20 13:10:52 -0400
commit33d1dc2eeb5db83f07b6b7fbf3b10ef01b74702b (patch)
tree38a08d415969b7b1bf504ede56d9e6652403aa0e /tests/test_discovery_sample
parent9e86c3f0a62a33a541b0ccf7d86a3db87e8e8705 (diff)
[1.7.x] Fixed flake8 warnings introduced in recent commits.
Backport of 79f05616fbf48cf7c205ef17666af0c3d47b3c1e from master
Diffstat (limited to 'tests/test_discovery_sample')
-rw-r--r--tests/test_discovery_sample/doctests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_discovery_sample/doctests.py b/tests/test_discovery_sample/doctests.py
index 3d228c6efb..4cc2a2105b 100644
--- a/tests/test_discovery_sample/doctests.py
+++ b/tests/test_discovery_sample/doctests.py
@@ -3,6 +3,7 @@ Doctest example from the official Python documentation.
https://docs.python.org/3/library/doctest.html
"""
+
def factorial(n):
"""Return the factorial of n, an exact integer >= 0.
@@ -35,7 +36,7 @@ def factorial(n):
raise ValueError("n must be >= 0")
if math.floor(n) != n:
raise ValueError("n must be exact integer")
- if n+1 == n: # catch a value like 1e300
+ if n + 1 == n: # catch a value like 1e300
raise OverflowError("n too large")
result = 1
factor = 2