Skip to content

Correct shebang and remove coding from all tests #1218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/test_bit_timing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import can


Expand Down
1 change: 0 additions & 1 deletion test/test_cantact.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
Tests for CANtact interfaces
Expand Down
2 changes: 2 additions & 0 deletions test/test_cyclic_socketcan.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
This module tests multiple message cyclic send tasks.
"""
Expand Down
1 change: 0 additions & 1 deletion test/test_detect_available_configs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
This module tests :meth:`can.BusABC._detect_available_configs` and
Expand Down
2 changes: 2 additions & 0 deletions test/test_interface_ixxat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
Unittest for ixxat interface.

Expand Down
2 changes: 2 additions & 0 deletions test/test_interface_ixxat_fd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
Unittest for ixxat interface using fd option.

Expand Down
1 change: 0 additions & 1 deletion test/test_load_file_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

import shutil
import tempfile
Expand Down
1 change: 0 additions & 1 deletion test/test_logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
This module tests the functions inside of logger.py
Expand Down
1 change: 0 additions & 1 deletion test/test_message_class.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

import unittest
import sys
Expand Down
1 change: 0 additions & 1 deletion test/test_message_filtering.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
This module tests :meth:`can.BusABC._matches_filters`.
Expand Down
1 change: 0 additions & 1 deletion test/test_message_sync.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
This module tests :class:`can.MessageSync`.
Expand Down
1 change: 0 additions & 1 deletion test/test_neousys.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

import ctypes
import os
Expand Down
1 change: 0 additions & 1 deletion test/test_robotell.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

import unittest
import can
Expand Down
1 change: 0 additions & 1 deletion test/test_scripts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
This module tests that the scripts are all callable.
Expand Down
1 change: 0 additions & 1 deletion test/test_slcan.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

import unittest
import can
Expand Down
2 changes: 2 additions & 0 deletions test/test_socketcan.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
Test functions in `can.interfaces.socketcan.socketcan`.
"""
Expand Down
1 change: 0 additions & 1 deletion test/test_socketcan_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
Tests helpers in `can.interfaces.socketcan.socketcan_common`.
Expand Down
2 changes: 2 additions & 0 deletions test/test_socketcan_loopback.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

"""
This module tests sending messages on socketcan with and without local_loopback flag

Expand Down
2 changes: 2 additions & 0 deletions test/test_util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import unittest
import warnings

Expand Down
1 change: 0 additions & 1 deletion test/test_vector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
Test for Vector Interface
Expand Down
3 changes: 1 addition & 2 deletions test/test_viewer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/python
# coding: utf-8
#!/usr/bin/env python
#
# Copyright (C) 2018 Kristian Sloth Lauszus.
#
Expand Down
1 change: 0 additions & 1 deletion test/zero_dlc_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# coding: utf-8

"""
"""
Expand Down