Skip to content

Commit

Permalink
tests/emulator: better filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 committed Jul 6, 2024
1 parent 7665934 commit a960ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/emulator/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def screenshot(d, suffix=''):
os.makedirs('screenshots', exist_ok=True)
fname_base = f'screenshots/{time.time()}-{suffix}'
fname_base = f'screenshots/{time.time():.3f}-{suffix}'
d.ui.screenshot(f'{fname_base}.png')
with open(f'{fname_base}.xml', 'w') as f:
f.write(d.ui.dump_hierarchy())
Expand Down

0 comments on commit a960ed4

Please sign in to comment.