pitrou commented on a change in pull request #7805:
URL: https://github.com/apache/arrow/pull/7805#discussion_r457425287
##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -300,6 +301,8 @@ def test_nulls(ty):
def test_array_from_scalar():
today = datetime.date.today()
now = datetime.datetime.now()
+ now_utc = now.replace(tzinfo=pytz.utc)
Review comment:
Based on my experimentations, you should write:
```python
now_utc = datetime.datetime.now(tz=pytz.utc)
```
(simply calling `.replace(tzinfo=pytz.utc)` doesn't adjust the recorded time
for the timezone change, so you get the local time tagged with a UTC timezone)
And, yes, this probably doesn't matter for the test's correctness :-)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]