Skip to content

Use trace not turtle in import_outside_toplevel test #7168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/functional/i/import_outside_toplevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class C:
import tokenize # [import-outside-toplevel]

def j(self):
import turtle # [import-outside-toplevel]
import trace # [import-outside-toplevel]


def k(flag):
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/i/import_outside_toplevel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import-outside-toplevel:15:4:15:18:g:Import outside toplevel (os, sys):UNDEFINED
import-outside-toplevel:19:4:19:24:h:Import outside toplevel (time):UNDEFINED
import-outside-toplevel:23:4:23:41:i:Import outside toplevel (random, socket):UNDEFINED
import-outside-toplevel:27:4:27:19:C:Import outside toplevel (tokenize):UNDEFINED
import-outside-toplevel:30:8:30:21:C.j:Import outside toplevel (turtle):UNDEFINED
import-outside-toplevel:30:8:30:20:C.j:Import outside toplevel (trace):UNDEFINED
import-outside-toplevel:35:8:35:23:k:Import outside toplevel (tabnanny):UNDEFINED
import-outside-toplevel:39:4:39:39:j:Import outside toplevel (collections.defaultdict):UNDEFINED
import-outside-toplevel:43:4:43:48:m:Import outside toplevel (math.sin, math.cos):UNDEFINED
Expand Down