A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/r22b2-branch/Lib/test/test_future.py below:

# Test various flavors of legal and illegal future statements from test_support import unload import re rx = re.compile('\((\S+).py, line (\d+)') def check_error_location(msg): mo = rx.search(msg) print "SyntaxError %s %s" % mo.group(1, 2) # The first two tests should work unload('test_future1') import test_future1 unload('test_future2') import test_future2 unload('test_future3') import test_future3 # The remaining tests should fail try: import badsyntax_future3 except SyntaxError, msg: check_error_location(str(msg)) try: import badsyntax_future4 except SyntaxError, msg: check_error_location(str(msg)) try: import badsyntax_future5 except SyntaxError, msg: check_error_location(str(msg)) try: import badsyntax_future6 except SyntaxError, msg: check_error_location(str(msg)) try: import badsyntax_future7 except SyntaxError, msg: check_error_location(str(msg))

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4