We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e3960 commit 5bd528cCopy full SHA for 5bd528c
test/test_writing_pyc.py
@@ -174,6 +174,8 @@ def load_meta_and_code_from_filename(path: str):
174
175
176
def main(argv: List[str]) -> int:
177
+
178
+ unlink_on_success = False
179
# parser = argparse.ArgumentParser(
180
# description="Load a .pyc with xdis, rewrite it to a temporary file, and compare."
181
# )
@@ -262,6 +264,8 @@ def main(argv: List[str]) -> int:
262
264
print("Rewritten file:", tf_name)
263
265
print("Raw-bytes identical:", same_bytes)
266
if same_bytes:
267
+ if unlink_on_success:
268
+ os.unlink(tf_name)
269
return 0
270
271
compare_showing_error(orig_path, tf_name)
0 commit comments