aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/lib2to3/tests/test_refactor.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-14 23:49:58 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-14 23:49:58 +0200
commit8bdc130121550fa99d7e76c84a06deda21000cd4 (patch)
tree8aa47df57969d9ade01d4c858241481844901363 /Lib/lib2to3/tests/test_refactor.py
parent98a0d063a12c94ac9db6b1076cddad40a2fbd82b (diff)
downloadcpython-8bdc130121550fa99d7e76c84a06deda21000cd4.tar.gz
cpython-8bdc130121550fa99d7e76c84a06deda21000cd4.zip
Issue #19592: Use specific asserts in lib2to3 tests.
Diffstat (limited to 'Lib/lib2to3/tests/test_refactor.py')
-rw-r--r--Lib/lib2to3/tests/test_refactor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py
index 5ecd9b1cb3e..f30c1e86309 100644
--- a/Lib/lib2to3/tests/test_refactor.py
+++ b/Lib/lib2to3/tests/test_refactor.py
@@ -49,9 +49,9 @@ class TestRefactoringTool(unittest.TestCase):
def test_print_function_option(self):
rt = self.rt({"print_function" : True})
- self.assertTrue(rt.grammar is pygram.python_grammar_no_print_statement)
- self.assertTrue(rt.driver.grammar is
- pygram.python_grammar_no_print_statement)
+ self.assertIs(rt.grammar, pygram.python_grammar_no_print_statement)
+ self.assertIs(rt.driver.grammar,
+ pygram.python_grammar_no_print_statement)
def test_write_unchanged_files_option(self):
rt = self.rt()