diff options
author | Steven Myint <git@stevenmyint.com> | 2017-10-11 06:42:51 -0700 |
---|---|---|
committer | Steven Myint <git@stevenmyint.com> | 2017-10-11 06:42:51 -0700 |
commit | de9faf64e4ea10c57cb02abe2246582ec1ce42c5 (patch) | |
tree | 02adddaa20da5665484af7ac33b88a71d0984626 | |
parent | da2dd4a09f41661bcd67afdd0696b97bc8e2a54f (diff) | |
download | pyflakes-breakpoint.tar.gz |
Test PEP 553 `breakpoint()`breakpoint
This closes #300.
-rw-r--r-- | pyflakes/test/test_undefined_names.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyflakes/test/test_undefined_names.py b/pyflakes/test/test_undefined_names.py index 1464d8e..9d2cd1c 100644 --- a/pyflakes/test/test_undefined_names.py +++ b/pyflakes/test/test_undefined_names.py @@ -218,6 +218,10 @@ class Test(TestCase): """ self.flakes('WindowsError') + @skipIf(version_info < (3, 7), 'breakpoint is a new builtin in Python 3.7') + def test_builtinBreakpoint(self): + self.flakes('breakpoint()') + def test_magicGlobalsFile(self): """ Use of the C{__file__} magic global should not emit an undefined name |