Skip to content

Commit 0753fba

Browse files
authored
Merge pull request #1218 from pkess/fix-header-tests
Correct shebang and remove coding from all tests
2 parents 8b6b592 + 99d352a commit 0753fba

22 files changed

+15
-16
lines changed

test/test_bit_timing.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
import can
24

35

test/test_cantact.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
Tests for CANtact interfaces

test/test_cyclic_socketcan.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
"""
24
This module tests multiple message cyclic send tasks.
35
"""

test/test_detect_available_configs.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
This module tests :meth:`can.BusABC._detect_available_configs` and

test/test_interface_ixxat.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
"""
24
Unittest for ixxat interface.
35

test/test_interface_ixxat_fd.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
"""
24
Unittest for ixxat interface using fd option.
35

test/test_load_file_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
import shutil
54
import tempfile

test/test_logger.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
This module tests the functions inside of logger.py

test/test_message_class.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
import unittest
54
import sys

test/test_message_filtering.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
This module tests :meth:`can.BusABC._matches_filters`.

test/test_message_sync.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
This module tests :class:`can.MessageSync`.

test/test_neousys.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
import ctypes
54
import os

test/test_robotell.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
import unittest
54
import can

test/test_scripts.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
This module tests that the scripts are all callable.

test/test_slcan.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
import unittest
54
import can

test/test_socketcan.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
"""
24
Test functions in `can.interfaces.socketcan.socketcan`.
35
"""

test/test_socketcan_helpers.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
Tests helpers in `can.interfaces.socketcan.socketcan_common`.

test/test_socketcan_loopback.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
"""
24
This module tests sending messages on socketcan with and without local_loopback flag
35

test/test_util.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
13
import unittest
24
import warnings
35

test/test_vector.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
Test for Vector Interface

test/test_viewer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/python
2-
# coding: utf-8
1+
#!/usr/bin/env python
32
#
43
# Copyright (C) 2018 Kristian Sloth Lauszus.
54
#

test/zero_dlc_test.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
32

43
"""
54
"""

0 commit comments

Comments
 (0)