pycall.rb icon indicating copy to clipboard operation
pycall.rb copied to clipboard

There is a rarely failed example on Windows

Open mrkn opened this issue 6 years ago • 0 comments

https://ci.appveyor.com/project/mrkn/pycall/build/1.0.108/job/ylhkmtyb8ya1uqw7

The failed example is:

Failures:
  1) <class 'dict'>#has_key? when key is a python object should not have key time.struct_time(tm_year=2017, tm_mon=9, tm_mday=22, tm_hour=2, tm_min=32, tm_sec=36, tm_wday=4, tm_yday=265, tm_isdst=0)
     Failure/Error: expect(subject).not_to have_key(non_key)
       expected #has_key?(time.struct_time(tm_year=2017, tm_mon=9, tm_mday=22, tm_hour=2, tm_min=32, tm_sec=36, tm_wday=4, tm_yday=265, tm_isdst=0)) to return false, got true
     # ./spec/pycall/dict_spec.rb:98:in `block (4 levels) in <module:PyCall>'

The platform is i386-mingw32:

bundle exec rake -rdevkit clobber compile
mkdir -p tmp/i386-mingw32/pycall/2.3.3
cd tmp/i386-mingw32/pycall/2.3.3

The randomized seed is:

Randomized with seed 22553

Python version:

The following version of Python is used:
3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]

mrkn avatar Sep 22 '17 02:09 mrkn