From 32f048ffbcb2c4e674e81037d2e0474e24419330 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Mon, 27 Aug 2012 16:31:27 -0400 Subject: [PATCH] Force raising an exception on utils.positional for one test. Reviewed in https://codereview.appspot.com/6472061/. --- tests/test_discovery.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_discovery.py b/tests/test_discovery.py index e9d5553..09971f7 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -23,6 +23,7 @@ Unit tests for objects created from discovery documents. __author__ = 'jcgregorio@google.com (Joe Gregorio)' +import gflags import httplib2 import os import sys @@ -53,6 +54,9 @@ from oauth2client.anyjson import simplejson DATA_DIR = os.path.join(os.path.dirname(__file__), 'data') +FLAGS = gflags.FLAGS +FLAGS.positional_parameters_enforcement = 'EXCEPTION' + def datafile(filename): return os.path.join(DATA_DIR, filename)