diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-07-06 12:29:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 12:29:49 (GMT) |
commit | deb016224cc506503fb05e821a60158c83918ed4 (patch) | |
tree | 21b683e93134e016806477e15df1211567441301 /Lib/test/test_eof.py | |
parent | b4a9263708cc67c98c4d53b16933f6e5dd07990f (diff) | |
download | cpython-deb016224cc506503fb05e821a60158c83918ed4.zip cpython-deb016224cc506503fb05e821a60158c83918ed4.tar.gz cpython-deb016224cc506503fb05e821a60158c83918ed4.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
Diffstat (limited to 'Lib/test/test_eof.py')
-rw-r--r-- | Lib/test/test_eof.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_eof.py b/Lib/test/test_eof.py index 51cbbd8..2cf263d 100644 --- a/Lib/test/test_eof.py +++ b/Lib/test/test_eof.py @@ -2,6 +2,7 @@ import sys from test import support +from test.support import os_helper from test.support import script_helper import unittest @@ -48,7 +49,7 @@ class EOFTestCase(unittest.TestCase): @unittest.skipIf(not sys.executable, "sys.executable required") def test_line_continuation_EOF_from_file_bpo2180(self): """Ensure tok_nextc() does not add too many ending newlines.""" - with support.temp_dir() as temp_dir: + with os_helper.temp_dir() as temp_dir: file_name = script_helper.make_script(temp_dir, 'foo', '\\') rc, out, err = script_helper.assert_python_failure(file_name) self.assertIn(b'unexpected EOF while parsing', err) |