diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-14 23:49:58 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-14 23:49:58 +0200 |
commit | 8bdc130121550fa99d7e76c84a06deda21000cd4 (patch) | |
tree | 8aa47df57969d9ade01d4c858241481844901363 /Lib/lib2to3/tests/test_refactor.py | |
parent | 98a0d063a12c94ac9db6b1076cddad40a2fbd82b (diff) | |
download | cpython-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.py | 6 |
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() |