Skip to content

Commit 6ee0931

Browse files
committed
Avoid double-assignment of a module-level constant, as @CAM-Gerlach suggested
1 parent 553338d commit 6ee0931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qtpy/tests/test_qtcore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
)
1717
from qtpy.tests.utils import not_using_conda
1818

19-
NOW = datetime.now()
19+
_now = datetime.now()
2020
# Make integer milliseconds; `floor` here, don't `round`!
21-
NOW = NOW.replace(microsecond=(NOW.microsecond // 1000 * 1000))
21+
NOW = _now.replace(microsecond=(_now.microsecond // 1000 * 1000))
2222

2323

2424
def test_qtmsghandler():

0 commit comments

Comments
 (0)