Skip to content

Commit 5bee777

Browse files
committed
Use _dt as datetime package import
1 parent b35cd87 commit 5bee777

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_prices.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import datetime
21
import datetime as _dt
32
import os
43
import unittest
@@ -49,7 +48,7 @@ def test_download_multi_large_interval(self):
4948
def test_download_multi_small_interval(self):
5049
use_tkrs = ["AAPL", "0Q3.DE", "ATVI"]
5150
df = yf.download(use_tkrs, period="1d", interval="5m")
52-
self.assertEqual(df.index.tz, datetime.timezone.utc)
51+
self.assertEqual(df.index.tz, _dt.timezone.utc)
5352

5453
def test_download_with_invalid_ticker(self):
5554
#Checks if using an invalid symbol gives the same output as not using an invalid symbol in combination with a valid symbol (AAPL)

0 commit comments

Comments
 (0)