Rain fails after 2038-01-19
See original GitHub issueDescribe the bug Rain test fails after 2038-01-19
To Reproduce
on openSUSE, I build the package with
osc co openSUSE:Factory/python-asciimatics
osc build --vm-type=kvm --noservice --clean --build-opt=--vm-custom-opt="-rtc base=2038-01-20T00:00:00" --alternative-project=home:bmwiedemann:reproducible openSUSE_Tumbleweed
Expected behavior
tests should continue to pass in future
Screenshots
=================================== FAILURES ===================================
___________________________ TestParticles.test_rain ____________________________
self = <tests.test_particles.TestParticles testMethod=test_rain>
def test_rain(self):
"""
Test that Rain works as expected.
"""
screen = MagicMock(spec=Screen, colours=8)
canvas = Canvas(screen, 10, 40, 0, 0)
effect = Rain(canvas, 200)
> self.check_effect(canvas,
effect,
lambda value: self.assertIn(chr(value[0]), ' `\\v'))
tests/test_particles.py:98:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_particles.py:43: in check_effect
self.assertTrue(changed, "failed at step %d %s" % (i, view))
E AssertionError: False is not true : failed at step 0
==== 1 failed, 149 passed, 41 skipped, 1 deselected, 966 warnings in 3.67s =====
System details (please complete the following information):
- OS and version: openSUSE-Tumbleweed-20220906
- Python version: 3.10
- Python distribution: cpython
- Asciimatics version 1.14.0
Additional context See also https://en.wikipedia.org/wiki/Year_2038_problem
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future. The usual offset is +16 years, because that is how long I expect some software will be used in some places. This showed up failing tests in our package build. See https://reproducible-builds.org/ for why this matters.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Rain and Precipitation | U.S. Geological Survey - USGS.gov
Once on the land, rainfall either seeps into the ground or becomes runoff, which flows into rivers and lakes. What happens to the...
Read more >Niagara Falls NY - National Weather Service
Rain likely, mainly after 4pm. Cloudy, with a high near 44. Southeast wind 8 to 14 mph. Chance of precipitation is 60%. New...
Read more >7 facts about rain to pore over - Met Office
1. Phantom rain. Under certain conditions, rain can fall from the sky without ever reaching the ground. It happens when rain falling from...
Read more >WATCH: After rains, Brazil's Iguazu Falls rages 10 ... - YouTube
Heavy rains in southern Brazil have caused water levels to surge at Iguazu Falls, a UNESCO World Heritage site that sits on the...
Read more >What's driving the massive, destructive rainfalls around the ...
The problem of more frequent and extreme precipitation is not only national but also global. Europe saw deadly flooding after severe rains ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah - seeding the RNG is a good idea. I’ll push something to master.
Naughty stalebot! I’ll fix this…