summaryrefslogtreecommitdiff
path: root/tests/unit/compat/builtins.py
diff options
context:
space:
mode:
authorKate Case <kcase@redhat.com>2023-02-27 23:49:54 -0500
committerGitHub <noreply@github.com>2023-02-27 23:49:54 -0500
commit4d9f13491531e968b4b30b32577eccb324cf23dd (patch)
tree003b0a38f43c712e23e9d71c0883ab2c4a73e00d /tests/unit/compat/builtins.py
parent5dc5a62c8479222b9fd3c09cd482177f863fa837 (diff)
downloadvyos.vyos-4d9f13491531e968b4b30b32577eccb324cf23dd.tar.gz
vyos.vyos-4d9f13491531e968b4b30b32577eccb324cf23dd.zip
Update Unit Tests (#297)
* Remove Python < 3.6 wrappers * Update imports
Diffstat (limited to 'tests/unit/compat/builtins.py')
-rw-r--r--tests/unit/compat/builtins.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/unit/compat/builtins.py b/tests/unit/compat/builtins.py
deleted file mode 100644
index bfc8adfb..00000000
--- a/tests/unit/compat/builtins.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# (c) 2014, Toshio Kuratomi <tkuratomi@ansible.com>
-#
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# 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
-
-#
-# Compat for python2.7
-#
-
-# One unittest needs to import builtins via __import__() so we need to have
-# the string that represents it
-try:
- import __builtin__
-except ImportError:
- BUILTINS = "builtins"
-else:
- BUILTINS = "__builtin__"