Skip to content
Myr

Fix a doc oversight, and revert 5876a8fd.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by florentx · committed by Armin Ronacher · parent 5876a8f · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:docs/testing.rst+2 added-2 removed
66 unmodified lines
67to create a temporary database and initialize it. The68:func:`~tempfile.mkstemp` function does two things for us: it returns a69low-level file handle and a random file name, the latter we use as70database name. We just have to keep the `db_fd` around so that we can use71the :func:`os.close` function to close the function.71the :func:`os.close` function to close the file.7273If we now run that testsuite, we should see the following output::7475 $ python flaskr_tests.py7677 ----------------------------------------------------------------------78 Ran 0 tests in 0.000s79 7980 OK8182Even though it did not run any tests, we already know that our flaskr83application is syntactically valid, otherwise the import would have died
114 unmodified lines
modified:flask.py+1 added
268 unmodified lines
269270# figure out if simplejson escapes slashes. This behaviour was changed271# from one version to another without reason.272if not json_available or '\\/' not in json.dumps('/'):273274 def _tojson_filter(*args, **kwargs):275 if __debug__:276 _assert_have_json()277 return json.dumps(*args, **kwargs).replace('/', '\\/')
528 unmodified lines