mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Branch merge
This commit is contained in:
commit
cc95dd81f3
16 changed files with 48 additions and 97 deletions
|
@ -319,8 +319,6 @@ class UtilTestCase(support.EnvironRestorer,
|
|||
res = get_compiler_versions()
|
||||
self.assertEqual(res[2], None)
|
||||
|
||||
@unittest.skipUnless(hasattr(sys, 'dont_write_bytecode'),
|
||||
'sys.dont_write_bytecode not supported')
|
||||
def test_dont_write_bytecode(self):
|
||||
# makes sure byte_compile raise a PackagingError
|
||||
# if sys.dont_write_bytecode is True
|
||||
|
@ -407,7 +405,6 @@ class UtilTestCase(support.EnvironRestorer,
|
|||
finally:
|
||||
sys.path.remove(tmp_dir)
|
||||
|
||||
@unittest.skipIf(sys.version < '2.6', 'requires Python 2.6 or higher')
|
||||
def test_run_2to3_on_code(self):
|
||||
content = "print 'test'"
|
||||
converted_content = "print('test')"
|
||||
|
@ -421,7 +418,6 @@ class UtilTestCase(support.EnvironRestorer,
|
|||
file_handle.close()
|
||||
self.assertEqual(new_content, converted_content)
|
||||
|
||||
@unittest.skipIf(sys.version < '2.6', 'requires Python 2.6 or higher')
|
||||
def test_run_2to3_on_doctests(self):
|
||||
# to check if text files containing doctests only get converted.
|
||||
content = ">>> print 'test'\ntest\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue