Ali Afshar | 02b5f3f | 2012-09-06 08:43:10 -0700 | [diff] [blame] | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 | # you may not use this file except in compliance with the License. |
| 3 | # You may obtain a copy of the License at |
| 4 | # |
| 5 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | # |
| 7 | # Unless required by applicable law or agreed to in writing, software |
| 8 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | # See the License for the specific language governing permissions and |
| 11 | # limitations under the License. |
| 12 | |
| 13 | """Test Package set up.""" |
INADA Naoki | d898a37 | 2015-03-04 03:52:46 +0900 | [diff] [blame] | 14 | from __future__ import absolute_import |
Ali Afshar | 02b5f3f | 2012-09-06 08:43:10 -0700 | [diff] [blame] | 15 | |
| 16 | __author__ = 'afshar@google.com (Ali Afshar)' |
| 17 | |
Jon Wayne Parrott | 36d4e1b | 2016-10-17 13:31:33 -0700 | [diff] [blame] | 18 | |
| 19 | # Oauth2client < 3 has the positional helper in 'util', >= 3 has it |
| 20 | # in '_helpers'. |
| 21 | try: |
| 22 | from oauth2client import util |
| 23 | except ImportError: |
| 24 | from oauth2client import _helpers as util |
| 25 | |
Ali Afshar | 02b5f3f | 2012-09-06 08:43:10 -0700 | [diff] [blame] | 26 | |
| 27 | def setup_package(): |
| 28 | """Run on testing package.""" |
Jon Wayne Parrott | 36d4e1b | 2016-10-17 13:31:33 -0700 | [diff] [blame] | 29 | util.positional_parameters_enforcement = 'EXCEPTION' |