Comments (5)
I sent the PR: #939.
from spec.
Interesting, so Europe/Amsterdam
in 1940 is not CEST but "WEST"?
Does the test pass by changing to 1970? PR welcome BTW.
because it seems that 1940 was originally chosen on purpose.
Because of fb2bf67 ?
Changing the expectation to WEST wouldn't work against older tzdata, so using a different year seems more reliable.
from spec.
I investigated this issue.
Because of fb2bf67 ?
It seems that the commit above added the test cases. But according to the comment for tzdata RPM package issue ticket on Fedora, and checking the tzdata project, here is the caused commit. This is intentional. The change is new in tzdata version "2022b".
On ruby/ruby, I found the commit to comment out the tests. My guess is that it is a temporary workaround to pass the tests. And the "2022c" is not accurate. It should be "2022b".
The tzdata 2022c removed Amsterdam Mean Time
ruby/ruby@b7577b4
Changing the expectation to WEST wouldn't work against older tzdata, so using a different year seems more reliable.
I would suggest this patch for the ruby/ruby and ruby/spec.
diff --git a/spec/ruby/core/time/shared/local.rb b/spec/ruby/core/time/shared/local.rb
index 997b7186f1..bd33fa01ac 100644
--- a/spec/ruby/core/time/shared/local.rb
+++ b/spec/ruby/core/time/shared/local.rb
@@ -6,18 +6,18 @@
end
end
-=begin
platform_is_not :windows do
describe "timezone changes" do
it "correctly adjusts the timezone change to 'CEST' on 'Europe/Amsterdam'" do
with_timezone("Europe/Amsterdam") do
- Time.send(@method, 1940, 5, 16).to_a.should ==
- [0, 40, 1, 16, 5, 1940, 4, 137, true, "CEST"]
+ [
+ [0, 40, 1, 16, 5, 1940, 4, 137, true, "CEST"],
+ [0, 0, 0, 16, 5, 1940, 4, 137, true, "WEST"]
+ ].should include(Time.send(@method, 1940, 5, 16).to_a)
end
end
end
end
-=end
end
describe :time_local_10_arg, shared: true do
from spec.
Could you make a PR with that?
Also would it work to change 1940 by 1970? I think that would be simpler.
from spec.
Sure. I will send the PR with the 1970.
from spec.
Related Issues (20)
- Write specs for new Ruby 3.2 features and changes HOT 7
- Wrongly referring ruby version instead of gem versions HOT 6
- Checks for exact values in core/random/bytes HOT 1
- Ubuntu jammy s390x: Test failures HOT 3
- IPSocket.getaddress with unknown host returnng IP address HOT 16
- Where should `Time#to_date` and `Time#to_datetime` be? HOT 5
- Process constant values are platform-dependent on Linux
- Using eval for expectations prevents testing other execution modes HOT 2
- core/class/descendants_spec relying on a particular GC behavior HOT 1
- Please revert #dbff2dc 'Add Class#descendants' HOT 5
- Write specs for new Ruby 3.1 features and changes HOT 9
- TCPSocket specs hang if client doesn't connect HOT 4
- Zlib.crc32 calculates CRC checksum for string and initial CRC value FAILED HOT 9
- Better testing for finalization HOT 2
- Link to repository that no longer exists in README.md
- [Notice, please feel free to close it] Natalie HOT 1
- Safe navigation for square brackets HOT 2
- Cleanup proc_spec.rb and block_spec.rb HOT 1
- Extend the tests in regexp/inspect_spec with over escaping combined with character classes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spec.