From 99d352ab6a22ad2c1e9212c76d5b4db927cbde93 Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Sun, 16 Jan 2022 11:41:21 +0100
Subject: [PATCH] Correct shebang and remove coding from all tests
---
test/test_bit_timing.py | 2 ++
test/test_cantact.py | 1 -
test/test_cyclic_socketcan.py | 2 ++
test/test_detect_available_configs.py | 1 -
test/test_interface_ixxat.py | 2 ++
test/test_interface_ixxat_fd.py | 2 ++
test/test_load_file_config.py | 1 -
test/test_logger.py | 1 -
test/test_message_class.py | 1 -
test/test_message_filtering.py | 1 -
test/test_message_sync.py | 1 -
test/test_neousys.py | 1 -
test/test_robotell.py | 1 -
test/test_scripts.py | 1 -
test/test_slcan.py | 1 -
test/test_socketcan.py | 2 ++
test/test_socketcan_helpers.py | 1 -
test/test_socketcan_loopback.py | 2 ++
test/test_util.py | 2 ++
test/test_vector.py | 1 -
test/test_viewer.py | 3 +--
test/zero_dlc_test.py | 1 -
22 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/test/test_bit_timing.py b/test/test_bit_timing.py
index 0b22e308f..2a9b1ac79 100644
--- a/test/test_bit_timing.py
+++ b/test/test_bit_timing.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
import can
diff --git a/test/test_cantact.py b/test/test_cantact.py
index 51bf569bb..e361ad1ad 100644
--- a/test/test_cantact.py
+++ b/test/test_cantact.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
Tests for CANtact interfaces
diff --git a/test/test_cyclic_socketcan.py b/test/test_cyclic_socketcan.py
index 4e3887ad6..ca1db6bfc 100644
--- a/test/test_cyclic_socketcan.py
+++ b/test/test_cyclic_socketcan.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
"""
This module tests multiple message cyclic send tasks.
"""
diff --git a/test/test_detect_available_configs.py b/test/test_detect_available_configs.py
index 6e92ad9aa..f6590c276 100644
--- a/test/test_detect_available_configs.py
+++ b/test/test_detect_available_configs.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
This module tests :meth:`can.BusABC._detect_available_configs` and
diff --git a/test/test_interface_ixxat.py b/test/test_interface_ixxat.py
index ccd985051..76285e422 100644
--- a/test/test_interface_ixxat.py
+++ b/test/test_interface_ixxat.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
"""
Unittest for ixxat interface.
diff --git a/test/test_interface_ixxat_fd.py b/test/test_interface_ixxat_fd.py
index 0aa999a21..80060a7ed 100644
--- a/test/test_interface_ixxat_fd.py
+++ b/test/test_interface_ixxat_fd.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
"""
Unittest for ixxat interface using fd option.
diff --git a/test/test_load_file_config.py b/test/test_load_file_config.py
index 79b2e6c4b..c71e6ccd6 100644
--- a/test/test_load_file_config.py
+++ b/test/test_load_file_config.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
import shutil
import tempfile
diff --git a/test/test_logger.py b/test/test_logger.py
index a046b919f..9b749b859 100644
--- a/test/test_logger.py
+++ b/test/test_logger.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
This module tests the functions inside of logger.py
diff --git a/test/test_message_class.py b/test/test_message_class.py
index d0908e363..688cda24f 100644
--- a/test/test_message_class.py
+++ b/test/test_message_class.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
import unittest
import sys
diff --git a/test/test_message_filtering.py b/test/test_message_filtering.py
index 18ddf9e19..addea13fd 100644
--- a/test/test_message_filtering.py
+++ b/test/test_message_filtering.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
This module tests :meth:`can.BusABC._matches_filters`.
diff --git a/test/test_message_sync.py b/test/test_message_sync.py
index 6e6a89a4d..1e2d61b24 100644
--- a/test/test_message_sync.py
+++ b/test/test_message_sync.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
This module tests :class:`can.MessageSync`.
diff --git a/test/test_neousys.py b/test/test_neousys.py
index c2ae535f5..f61c37655 100644
--- a/test/test_neousys.py
+++ b/test/test_neousys.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
import ctypes
import os
diff --git a/test/test_robotell.py b/test/test_robotell.py
index 58e2d9a7f..86e053f2d 100644
--- a/test/test_robotell.py
+++ b/test/test_robotell.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
import unittest
import can
diff --git a/test/test_scripts.py b/test/test_scripts.py
index 8efd70eff..a22820bd8 100644
--- a/test/test_scripts.py
+++ b/test/test_scripts.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
This module tests that the scripts are all callable.
diff --git a/test/test_slcan.py b/test/test_slcan.py
index 781fa75df..1e6282d41 100644
--- a/test/test_slcan.py
+++ b/test/test_slcan.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
import unittest
import can
diff --git a/test/test_socketcan.py b/test/test_socketcan.py
index c322bbf75..a2c4faed3 100644
--- a/test/test_socketcan.py
+++ b/test/test_socketcan.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
"""
Test functions in `can.interfaces.socketcan.socketcan`.
"""
diff --git a/test/test_socketcan_helpers.py b/test/test_socketcan_helpers.py
index 669491f43..f3fbe6d26 100644
--- a/test/test_socketcan_helpers.py
+++ b/test/test_socketcan_helpers.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
Tests helpers in `can.interfaces.socketcan.socketcan_common`.
diff --git a/test/test_socketcan_loopback.py b/test/test_socketcan_loopback.py
index 17b83b268..2934eb9ea 100644
--- a/test/test_socketcan_loopback.py
+++ b/test/test_socketcan_loopback.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
"""
This module tests sending messages on socketcan with and without local_loopback flag
diff --git a/test/test_util.py b/test/test_util.py
index 7e3b10604..5768da282 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
import unittest
import warnings
diff --git a/test/test_vector.py b/test/test_vector.py
index f7b1f99ce..b1626b18c 100644
--- a/test/test_vector.py
+++ b/test/test_vector.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
Test for Vector Interface
diff --git a/test/test_viewer.py b/test/test_viewer.py
index 004877d7a..f2e3ef0e8 100644
--- a/test/test_viewer.py
+++ b/test/test_viewer.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-# coding: utf-8
+#!/usr/bin/env python
#
# Copyright (C) 2018 Kristian Sloth Lauszus.
#
diff --git a/test/zero_dlc_test.py b/test/zero_dlc_test.py
index 350d6aa4e..dd7c0dd49 100644
--- a/test/zero_dlc_test.py
+++ b/test/zero_dlc_test.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# coding: utf-8
"""
"""