Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
acf4bc95
Commit
acf4bc95
authored
Oct 15, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give all v2 tests the python3 compat boilerplate
parent
18f30b00
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
48 additions
and
0 deletions
+48
-0
v2/test/__init__.py
+5
-0
v2/test/compat.py
+4
-0
v2/test/errors/__init__.py
+4
-0
v2/test/errors/test_errors.py
+4
-0
v2/test/parsing/__init__.py
+5
-0
v2/test/parsing/test_general.py
+4
-0
v2/test/parsing/test_mod_args.py
+4
-0
v2/test/parsing/yaml/__init__.py
+5
-0
v2/test/parsing/yaml/test_yaml.py
+4
-0
v2/test/playbook/__init__.py
+5
-0
v2/test/playbook/test_task.py
+4
-0
No files found.
v2/test/__init__.py
View file @
acf4bc95
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
v2/test/compat.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
sys
import
unittest
...
...
v2/test/errors/__init__.py
View file @
acf4bc95
...
...
@@ -15,4 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
v2/test/errors/test_errors.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
..
compat
import
unittest
from
ansible.parsing.yaml.objects
import
AnsibleBaseYAMLObject
...
...
v2/test/parsing/__init__.py
View file @
acf4bc95
...
...
@@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
v2/test/parsing/test_general.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
..
compat
import
unittest
from
ansible.parsing
import
load
from
ansible.errors
import
AnsibleParserError
...
...
v2/test/parsing/test_mod_args.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
ansible.parsing.mod_args
import
ModuleArgsParser
from
..
compat
import
unittest
...
...
v2/test/parsing/yaml/__init__.py
View file @
acf4bc95
...
...
@@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
v2/test/parsing/yaml/test_yaml.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
...
compat
import
unittest
from
yaml.scanner
import
ScannerError
...
...
v2/test/playbook/__init__.py
View file @
acf4bc95
...
...
@@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
v2/test/playbook/test_task.py
View file @
acf4bc95
...
...
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Make coding more python3-ish
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
from
ansible.playbook.task
import
Task
from
..
compat
import
unittest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment