Back to index

python3.2  3.2.2
Public Member Functions
test.test_time._TestStrftimeYear Class Reference
Inheritance diagram for test.test_time._TestStrftimeYear:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def yearstr
def test_large_year

Detailed Description

Definition at line 295 of file test_time.py.


Member Function Documentation

Definition at line 299 of file test_time.py.

00299 
00300     def test_large_year(self):
00301         # Check that it doesn't crash for year > 9999
00302         try:
00303             text = self.yearstr(12345)
00304         except ValueError:
00305             # strftime() is limited to [1; 9999] with Visual Studio
00306             return
00307         self.assertEqual(text, '12345')
00308         self.assertEqual(self.yearstr(123456789), '123456789')

Here is the call graph for this function:

Definition at line 296 of file test_time.py.

00296 
00297     def yearstr(self, y):
00298         return time.strftime('%Y', (y,) + (0,) * 8).split()[-1]

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: