mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	#17877: merge with 3.3.
This commit is contained in:
		
						commit
						d62a514386
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,7 @@ import test.support
 | 
			
		|||
import time
 | 
			
		||||
import unittest
 | 
			
		||||
import sys
 | 
			
		||||
import os.path
 | 
			
		||||
 | 
			
		||||
class DateTimeTests(unittest.TestCase):
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -123,6 +124,9 @@ class LocaltimeTests(unittest.TestCase):
 | 
			
		|||
    # XXX: Need a more robust test for Olson's tzdata
 | 
			
		||||
    @unittest.skipIf(sys.platform.startswith('win'),
 | 
			
		||||
                     "Windows does not use Olson's TZ database")
 | 
			
		||||
    @unittest.skipUnless(os.path.exists('/usr/share/zoneinfo') or
 | 
			
		||||
                         os.path.exists('/usr/lib/zoneinfo'),
 | 
			
		||||
                         "Can't find the Olson's TZ database")
 | 
			
		||||
    @test.support.run_with_tz('Europe/Kiev')
 | 
			
		||||
    def test_variable_tzname(self):
 | 
			
		||||
        t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue