Commits

Brendan McCollam committed 0b89825

Accurate docstring and cleanup test slightly

Comments (0)

Files changed (1)

tests/test_job.py

 
 def test_private_modify_offset_naive_next_run_time(job):
     """Tests that a datetime object without timezone information will get
-    automatically localized to the timezone of the parent scheduler."""
+    automatically localized to the local timezone."""
 
-    local_tz = get_localzone()
     naive_datetime = datetime(2011, 4, 3, 18, 40)
     job._modify(next_run_time=naive_datetime)
-    assert job.next_run_time == local_tz.localize(naive_datetime)
+    assert job.next_run_time == get_localzone().localize(naive_datetime)
 
 
 def test_private_modify_bad_argument(job):