replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)
This commit is contained in:
parent
0f5d8c258c
commit
ac04bc7836
6 changed files with 13 additions and 13 deletions
|
|
@ -529,7 +529,7 @@ class BasicFunctionalityTestCase(FlaskTestCase):
|
|||
pass
|
||||
@app.route('/')
|
||||
def fails():
|
||||
1/0
|
||||
1 // 0
|
||||
rv = app.test_client().get('/')
|
||||
self.assert_equal(rv.status_code, 500)
|
||||
self.assert_in(b'Internal Server Error', rv.data)
|
||||
|
|
@ -866,7 +866,7 @@ class BasicFunctionalityTestCase(FlaskTestCase):
|
|||
app = flask.Flask(__name__)
|
||||
@app.route('/')
|
||||
def index():
|
||||
1/0
|
||||
1 // 0
|
||||
c = app.test_client()
|
||||
if config_key is not None:
|
||||
app.config[config_key] = True
|
||||
|
|
@ -1054,7 +1054,7 @@ class BasicFunctionalityTestCase(FlaskTestCase):
|
|||
|
||||
@app.route('/fail')
|
||||
def fail_func():
|
||||
1/0
|
||||
1 // 0
|
||||
|
||||
c = app.test_client()
|
||||
for x in range(3):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue