Skip to content

Commit

Permalink
Move signal import to top and add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom1729 committed Sep 22, 2021
1 parent 53177f0 commit 4da9932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/lib/test_constructor.py
Expand Up @@ -5,6 +5,9 @@
import datetime
import yaml.tokens

# Used in the construct-python-name-module test.
import signal

def execute(code):
global value
exec(code)
Expand Down Expand Up @@ -290,7 +293,6 @@ def test_subclass_blacklist_types(data_filename, verbose=False):

test_subclass_blacklist_types.unittest = ['.subclass_blacklist']

import signal
if __name__ == '__main__':
import sys, test_constructor
sys.modules['test_constructor'] = sys.modules['__main__']
Expand Down

0 comments on commit 4da9932

Please sign in to comment.