Skip to content

Commit

Permalink
Fix a doc oversight, and revert 5876a8f.
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx authored and mitsuhiko committed Apr 21, 2010
1 parent 5876a8f commit f014ce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/testing.rst
Expand Up @@ -68,15 +68,15 @@ to create a temporary database and initialize it. The
:func:`~tempfile.mkstemp` function does two things for us: it returns a :func:`~tempfile.mkstemp` function does two things for us: it returns a
low-level file handle and a random file name, the latter we use as low-level file handle and a random file name, the latter we use as
database name. We just have to keep the `db_fd` around so that we can use database name. We just have to keep the `db_fd` around so that we can use
the :func:`os.close` function to close the function. the :func:`os.close` function to close the file.


If we now run that testsuite, we should see the following output:: If we now run that testsuite, we should see the following output::


$ python flaskr_tests.py $ python flaskr_tests.py


---------------------------------------------------------------------- ----------------------------------------------------------------------
Ran 0 tests in 0.000s Ran 0 tests in 0.000s

OK OK


Even though it did not run any tests, we already know that our flaskr Even though it did not run any tests, we already know that our flaskr
Expand Down
1 change: 1 addition & 0 deletions flask.py
Expand Up @@ -270,6 +270,7 @@ def _get_package_path(name):
# figure out if simplejson escapes slashes. This behaviour was changed # figure out if simplejson escapes slashes. This behaviour was changed
# from one version to another without reason. # from one version to another without reason.
if not json_available or '\\/' not in json.dumps('/'): if not json_available or '\\/' not in json.dumps('/'):

def _tojson_filter(*args, **kwargs): def _tojson_filter(*args, **kwargs):
if __debug__: if __debug__:
_assert_have_json() _assert_have_json()
Expand Down

0 comments on commit f014ce2

Please sign in to comment.