summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-05-25 03:18:53 (GMT)
committerBarry Warsaw <barry@python.org>2000-05-25 03:18:53 (GMT)
commit1226588e57503785de79c9ce5dc91b307237f175 (patch)
tree20afa4c0c7df5124aff1bbced76bacf3fa43872a /Python/pythonrun.c
parent101de379070c3a7700a9f57bd6d24cab55f7848a (diff)
downloadcpython-1226588e57503785de79c9ce5dc91b307237f175.zip
cpython-1226588e57503785de79c9ce5dc91b307237f175.tar.gz
cpython-1226588e57503785de79c9ce5dc91b307237f175.tar.bz2
bltin_exc: Removed the leaf_exc flag in the structure, which was only
used to build the fallback string-based exception.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
pect_6 = [ test.workpath('class6', 'test$1.class'), test.workpath('class6', 'test$inner.class'), test.workpath('class6', 'test.class'), ] failed = None def classes_must_match(dir, expect): global failed got = test.java_get_class_files(test.workpath(dir)) if expect != got: missing = set(expect) - set(got) if missing: sys.stderr.write("Missing the following class files from '%s':\n" % dir) for c in missing: sys.stderr.write(' %s\n' % c) unexpected = set(got) - set(expect) if unexpected: sys.stderr.write("Found the following unexpected class files in '%s':\n" % dir) for c in unexpected: sys.stderr.write(' %s\n' % c) failed = 1 def classes_must_not_exist(dir, expect): global failed present = list(filter(os.path.exists, expect)) if present: sys.stderr.write("Found the following unexpected class files in '%s' after cleaning:\n" % dir) for c in present: sys.stderr.write(' %s\n' % c) failed = 1 classes_must_match('class1', expect_1) classes_must_match('class2', expect_2) classes_must_match('class3', expect_3) classes_must_match('class4', expect_4) classes_must_match('class5', expect_5) classes_must_match('class6', expect_6) test.fail_test(failed) test.up_to_date(options='--debug=explain', arguments = '.') test.run(arguments = '-c .') classes_must_not_exist('class1', expect_1) classes_must_not_exist('class2', expect_2) classes_must_not_exist('class3', expect_3) classes_must_not_exist('class4', expect_4) classes_must_not_exist('class5', expect_5) # This test case should pass, but doesn't. # The expect_6 list contains the class files that the Java compiler # actually creates, apparently because of the "private" instantiation # of the "inner" class. Our parser doesn't currently detect this, so # it doesn't know to remove that generated class file. #classes_must_not_exist('class6', expect_6) test.fail_test(failed) test.pass_test() # Local Variables: # tab-width:4 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=4 shiftwidth=4: