This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255481 - inaccuracy tests: regression in Python
Summary: inaccuracy tests: regression in Python
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-22 11:17 UTC by soldatov
Modified: 2015-09-23 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-09-22 11:17:46 UTC
test report:
Python-3.3.1/Objects/exceptions.c 528 unexpected token: StopIteration
Comment 1 Vladimir Kvashin 2015-09-22 12:46:11 UTC
The reason is that with new preprocessor, a comment between actual macro parameters breaks these paramteres' concatenation.

Here is a localized sample:

#define macro_concat(x, y) x ## y
int macro_concat(a, b) = 3;
int macro_concat(e, /**/ f) = 3;

Should be expanded to 
int ab = 3;
int ef = 3;

But is expanded to 
int ab = 3;
int e f = 3;
Comment 2 Vladimir Kvashin 2015-09-22 12:51:24 UTC
When IDE just parses project, this construct is parsed ok.
But when opened in editor, the mentioned effect takes place.
I guess that's because of "keep comments" option that is used in this case.
Comment 4 Quality Engineering 2015-09-23 01:24:33 UTC
Integrated into 'main-silver', will be available in build *201509230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9c3084dc8152
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: binaries update after fixing #255481 - inaccuracy tests: regression in Python