-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support Jinja imports with relative paths. Issue #13889 #47490
Changes from all commits
485e151
9409c73
13a364f
19e53fe
43ed9bc
bec2517
9dd9430
7a3bd63
cc22068
e6773db
80bb6e4
540bcde
1be2561
c1c8b36
a7e633e
a6a5441
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,7 +332,7 @@ def parse_args(self, args=None, values=None): | |
os.path.basename(fpath).startswith('test_'): | ||
self.options.name.append(fpath) | ||
continue | ||
self.exit(status=1, msg='\'{}\' is not a valid test module'.format(fpath)) | ||
self.exit(status=1, msg='\'{}\' is not a valid test module\n'.format(fpath)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you help me understand this change? I don't know what adding a newline here fixes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without the newline then the error message is not on a line by itself and the command prompt is left on the same line as the error message. |
||
|
||
print_header(u'', inline=True, width=self.options.output_columns) | ||
self.pre_execution_cleanup() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FAILURE |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% import '../../rescape' as xfail -%} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{% from './rmacro' import rmacro with context -%} | ||
{{ rmacro('Hey') ~ rmacro(a|default('a'), b|default('b')) }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% from '../macro' import mymacro with context %} | ||
{% macro rmacro(greeting, greetee='world') -%} | ||
{{ mymacro(greeting, greetee) }} | ||
{%- endmacro %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import behavior needs to be in the documentation. Where is the best location for it?