Skip to content

Commit d62b418

Browse files
author
brentru
committed
date
1 parent 6c51b42 commit d62b418

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/test_datetime.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
# SPDX-License-Identifier: Python-2.0
1010
# Implements a subset of https://github.com/python/cpython/blob/master/Lib/test/datetimetester.py
1111
# NOTE: This test is based off CPython and therefore linting is disabled within this file.
12-
# pylint:disable = invalid-name, no-member, cell-var-from-loop, unused-argument, no-self-use, too-few-public-methods, raise-missing-from, too-many-statements
12+
# pylint:disable = invalid-name, no-member, cell-var-from-loop, unused-argument, no-self-use, too-few-public-methods, raise-missing-from, too-many-statements, too-many-lines, undefined-variable, eval-used, import-outside-toplevel, redefined-outer-name, too-many-locals
1313
import sys
14+
1415
# CircuitPython subset implementation
1516
sys.path.append("..")
1617
from adafruit_datetime import datetime as cpy_datetime
@@ -283,7 +284,9 @@ def test_more_ctime(self):
283284

284285
# So test a case where that difference doesn't matter.
285286
t = self.theclass(2002, 3, 22, 18, 3, 5, 123)
286-
self.assertEqual(t.ctime(), cpython_time.ctime(cpython_time.mktime(t.timetuple())))
287+
self.assertEqual(
288+
t.ctime(), cpython_time.ctime(cpython_time.mktime(t.timetuple()))
289+
)
287290

288291
def test_tz_independent_comparing(self):
289292
dt1 = self.theclass(2002, 3, 1, 9, 0, 0)

tests/test_time.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
# pylint:disable = invalid-name, no-member, cell-var-from-loop, unused-argument, no-self-use, too-few-public-methods, consider-using-enumerate, undefined-variable
1313
# CircuitPython subset implementation
1414
import sys
15+
1516
sys.path.append("..")
1617
from adafruit_datetime import time as cpy_time
18+
1719
# CPython standard implementation
1820
from datetime import time as cpython_time
1921
import unittest

0 commit comments

Comments
 (0)