File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import os
18
18
from pathlib import Path
19
- # Good old print debug
20
- import pprint
21
19
import sys
22
20
23
21
import nox
24
22
23
+
25
24
# WARNING - WARNING - WARNING - WARNING - WARNING
26
25
# WARNING - WARNING - WARNING - WARNING - WARNING
27
26
# DO NOT EDIT THIS FILE EVER!
60
59
'envs' : {},
61
60
}
62
61
63
- pp = pprint .PrettyPrinter (indent = 4 )
64
62
65
63
try :
64
+ # Ensure we can import noxfile_config in the project's directory.
66
65
sys .path .append ('.' )
67
- print ("sys.path" )
68
- pp .pprint (sys .path )
69
66
from noxfile_config import TEST_CONFIG_OVERRIDE
70
- import noxfile_config
71
- print ('noxfile_config.__file__' )
72
- print (noxfile_config .__file__ )
73
- except ImportError :
74
- print ('importing noxfile_config failed' )
67
+ except ImportError as e :
68
+ print ("No user noxfile_config found: detail: {}" .format (e ))
75
69
TEST_CONFIG_OVERRIDE = {}
76
70
77
71
# Update the TEST_CONFIG with the user supplied values.
78
72
TEST_CONFIG .update (TEST_CONFIG_OVERRIDE )
79
73
80
- print ("TEST_CONFIG:" )
81
- pp .pprint (TEST_CONFIG )
82
74
83
75
def get_pytest_env_vars ():
84
76
"""Returns a dict for pytest invocation."""
@@ -92,8 +84,6 @@ def get_pytest_env_vars():
92
84
93
85
# Apply user supplied envs.
94
86
ret .update (TEST_CONFIG ['envs' ])
95
- print ("pytest_env_vars:" )
96
- pp .pprint (ret )
97
87
return ret
98
88
99
89
You can’t perform that action at this time.
0 commit comments