Commit graph

1465 commits

Author SHA1 Message Date
Thomas Waldmann
8bb972e5ae fix minitwit/flaskr test errors, improve docs about file open mode
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.

rv.data is bytes, fix the data type we compare it with to be also bytes
2013-05-25 19:13:48 +02:00
Armin Ronacher
85ba8c96e9 Fixed a broken test 2013-05-23 14:07:25 +01:00
Armin Ronacher
16df96c552 Merge branch 'master' into sprint-branch 2013-05-23 14:01:33 +01:00
Armin Ronacher
4c27f7a8c4 Removed incorrect JSON exception subclasses 2013-05-23 13:59:10 +01:00
Armin Ronacher
eb023bcfad Support old and new name for json 2013-05-23 13:46:51 +01:00
Daniel Neuhäuser
79ec3d81c1 Prevent UnboundLocalError in test_build_error_handler 2013-05-22 22:58:12 +02:00
Daniel Neuhäuser
43b6d0a6d0 Ensure that config file is closed immediately 2013-05-22 22:49:25 +02:00
Daniel Neuhäuser
a0801719f8 Remove six dependency 2013-05-22 21:40:30 +02:00
Daniel Neuhäuser
135c53a5f2 Fix .iteritems() access in flask.sessions 2013-05-22 21:30:45 +02:00
Daniel Neuhäuser
d395d3684a Merge pull request #739 from untitaker/sprint-branch
Fix leak in leak detection code
2013-05-22 12:16:25 -07:00
Markus Unterwaditzer
3d36d6efb9 Fix leak in leak detection code
If ensure_clean_request_context found a leak, it would raise an
AssertionError and not clean up the leak, and therefore affect other
testcases.
2013-05-22 21:09:32 +02:00
Daniel Neuhäuser
4bea6bbe6d Make DebugFilesKeyError.__str__ return str on 3.x 2013-05-22 21:07:53 +02:00
Daniel Neuhäuser
3f80b0fd6c module name is quoted in ImportErrors on 3.x 2013-05-22 21:03:01 +02:00
Daniel Neuhäuser
8f73c552a9 Add missing assertIn, assertNotIn methods on 2.6 2013-05-22 20:53:32 +02:00
Daniel Neuhäuser
62e7275bdf Use assert_false where appropriate 2013-05-22 20:17:29 +02:00
Daniel Neuhäuser
9f8a2075c7 Use assert_in where appropriate 2013-05-22 20:12:50 +02:00
Daniel Neuhäuser
4d73ef1a19 Add missing msg argument to assert_true() 2013-05-22 19:19:46 +02:00
Daniel Neuhäuser
8e9f0bdedc Use assert_equal instead of assertEquals
assertEquals is deprecated and its use inconsistent
2013-05-22 17:30:37 +02:00
Daniel Neuhäuser
239780be28 Use assert_true instead of assert_
assert_ is deprecated which causes annoying warnings
2013-05-22 17:23:38 +02:00
Daniel Neuhäuser
5b89355b1c Response data is bytes 2013-05-22 17:14:07 +02:00
Daniel Neuhäuser
97815b999e Merge pull request #737 from untitaker/sprint-branch
Fix some literals
2013-05-22 08:11:46 -07:00
Markus Unterwaditzer
05f66ad735 Fix some literals 2013-05-22 17:09:37 +02:00
Daniel Neuhäuser
3f51a09db4 itsdangerous uses json instead of simplejson now 2013-05-22 16:33:50 +02:00
Daniel Neuhäuser
884aad8ece Test using itsdangerous with 3.x support 2013-05-22 16:33:05 +02:00
Daniel Neuhäuser
ee013e01b0 Merge pull request #736 from ThomasWaldmann/sprint-branch
some more work on py 3.3 port
2013-05-22 07:20:41 -07:00
Daniel Neuhäuser
da5edad23a Use werkzeug@sprint-branch in tox 2013-05-22 16:19:57 +02:00
Thomas Waldmann
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Thomas Waldmann
a503520ac5 copy _compat.py from flask in here (and adapt docstring) 2013-05-21 23:34:25 +02:00
Armin Ronacher
aecc41deb8 Restore 2.5 support for the time being 2013-05-20 09:47:07 +01:00
Armin Ronacher
81c9b3570b Removed 2.5 from travis 2013-05-20 09:44:05 +01:00
Daniel Neuhäuser
ceb7c7f771 Don't notify IRC for this branch 2013-05-18 19:05:10 +02:00
Daniel Neuhäuser
506db0eab2 Use print_function 2013-05-18 19:00:06 +02:00
Daniel Neuhäuser
c618db92d6 reload_module is in six.moves 2013-05-18 18:55:36 +02:00
Daniel Neuhäuser
8494574fdf Merge branch 'six' of github.com:ThomasWaldmann/flask into ThomasWaldmann-six
Conflicts:
	flask/testsuite/__init__.py
2013-05-18 18:54:45 +02:00
Thomas Waldmann
287905e67c py3 compat: use six.reload_module 2013-05-18 18:39:10 +02:00
Daniel Neuhäuser
aba1d3a507 Test on 3.3 on travis 2013-05-18 18:28:59 +02:00
Daniel Neuhäuser
323a840c5a Add tox.ini 2013-05-18 18:27:49 +02:00
Thomas Waldmann
522cd00093 python-modernize automated changes: fix_unicode (but without six.u()) 2013-05-18 18:12:30 +02:00
Thomas Waldmann
dcd052366b python-modernize automated changes: fix_next 2013-05-18 18:03:37 +02:00
Thomas Waldmann
0f8c47c988 python-modernize automated changes: fix_dict 2013-05-18 18:00:15 +02:00
Thomas Waldmann
cfbfff2d26 python-modernize automated changes: misc. minor stuff 2013-05-18 17:57:43 +02:00
Thomas Waldmann
1b753cb1b1 require 'six' in setup.py, add flask._compat for stuff not yet in 'six' 2013-05-18 17:47:40 +02:00
Daniel Neuhäuser
05923f7f2f Merge branch 'exec' of github.com:ThomasWaldmann/flask into sprint-branch
Conflicts:
	flask/config.py
2013-05-18 17:32:38 +02:00
Daniel Neuhäuser
26a9e90734 Merge pull request #734 from ThomasWaldmann/methodattrs
automated change using python-modernize: fix methodattrs
2013-05-18 08:24:45 -07:00
Daniel Neuhäuser
bbdfc83902 Merge pull request #732 from ThomasWaldmann/exceptions_as
automated change using python-modernize: use 'as' in except
2013-05-18 08:24:00 -07:00
Daniel Neuhäuser
c87735ff1b Merge pull request #731 from ThomasWaldmann/docs
document python 2.6 minimum requirement, remove stuff that refers to 2.5
2013-05-18 08:18:05 -07:00
Thomas Waldmann
40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Thomas Waldmann
b8b769ad41 automated change using python-modernize: fix methodattrs 2013-05-18 16:39:39 +02:00
Thomas Waldmann
b52b7b1f93 automated change using python-modernize: replace execfile 2013-05-18 16:31:40 +02:00
Thomas Waldmann
6caaa8a527 automated change using python-modernize: use 'as' in except 2013-05-18 16:24:40 +02:00