[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters

Changes by Tim Peters :


--
components: +Library (Lib) -Extension Modules, ctypes
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread shanmbic

shanmbic added the comment:

make distclean worked. I guess too many reverts in hg caused some issue. :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread R. David Murray

R. David Murray added the comment:

Yes, I find that if there's something that might be a compilation problem, 
doing a make distclean and a build from scratch is a good idea to confirm it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Maybe @shanmbic has a clock skew and _datetime.so does not get recompiled?

I would try to do make clean or even make distclean and rebuild everything.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters

Tim Peters added the comment:

This is just hard to believe.  The symptom you describe is exactly what's 
expected if you got the new test suite but did not compile the new C code, both 
added by the fix for:

http://bugs.python.org/issue23600

Since we have numerous buildbots on which the test passes, what's special about 
your setup?  The changes here were quite straightforward.  Please double-check.

--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread shanmbic

shanmbic added the comment:

@belopolsky - Yeah, I recompiled all the C modules successfully, still it fails 
the test. I am running Ubuntu 14.10

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

@shanmbic - did you recompile C modules before running the tests?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread R. David Murray

R. David Murray added the comment:

No, that delta being one hour is the whole point of that test.

I've nosied Alexander.  He'll probably need more information about the 
environment in which you are seeing this.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread shanmbic

New submission from shanmbic:

The test for datetime module keeps failing. 

test test_datetime failed -- Traceback (most recent call last):
  File "/home/shantanu/cpython/Lib/test/datetimetester.py", line 215, in 
test_issue23600
self.assertEqual(t - t.utcoffset(), u)
AssertionError: datet[22 chars]26, 11, 1, 
tzinfo=) != datet[22 chars]26, 12, 1, 
tzinfo=)

In datetimetester.py , in function test_issue23600 , line 196:
the variable DSTDIFF has been assigned timedelta of 1 hour, I guess it should 
be , 

DSTDIFF = timedelta(hours=0)

It passes the test then. 

The comment in the function code says -  
"""Simple time zone which pretends to always be in summer time, since that's 
what shows the failure.""" Was the test written to fail on purpose ?  

Thanks

--
components: Extension Modules, ctypes
messages: 252609
nosy: shanmbic
priority: normal
severity: normal
status: open
title: test_datetime failing
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25354] test_datetime failing

2015-10-09 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +belopolsky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com