diff options
| author | Georg Brandl <georg@python.org> | 2007-12-02 09:40:06 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-12-02 09:40:06 +0000 |
| commit | 1a3284ed69d545e4ef59869998cb8c29233a45fa (patch) | |
| tree | 98728a9b7aae6188ee8124160007a9d5c5277f8c /Lib/test/test_compile.py | |
| parent | 87f9c53937ce47f55851ac7c71a94e46cf9142bf (diff) | |
| download | cpython-git-1a3284ed69d545e4ef59869998cb8c29233a45fa.tar.gz | |
#1535: rename __builtin__ module to builtins.
Diffstat (limited to 'Lib/test/test_compile.py')
| -rw-r--r-- | Lib/test/test_compile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index e7ffc02b7d..cc490d722f 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -7,10 +7,10 @@ class TestSpecifics(unittest.TestCase): def test_debug_assignment(self): # catch assignments to __debug__ self.assertRaises(SyntaxError, compile, '__debug__ = 1', '?', 'single') - import __builtin__ - prev = __builtin__.__debug__ - setattr(__builtin__, '__debug__', 'sure') - setattr(__builtin__, '__debug__', prev) + import builtins + prev = builtins.__debug__ + setattr(builtins, '__debug__', 'sure') + setattr(builtins, '__debug__', prev) def test_argument_handling(self): # detect duplicate positional and keyword arguments |
