Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Suppress warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heitzmann committed Jun 8, 2021
1 parent a952c66 commit 8d85eec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def test_update_timestamp(tmpdir):
date1 = datetime.datetime(1988, 8, 28)
date2 = datetime.datetime(2020, 12, 25)
lib = gdspy.GdsLibrary(name='speedy')
lib.new_cell("empty")
lib.write_gds(fn1, timestamp=date1)
hash1 = hash_file(fn1)
lib.write_gds(fn2, timestamp=date2)
Expand All @@ -347,4 +348,4 @@ def test_update_timestamp(tmpdir):
gdspy.set_gdsii_timestamp(filename=fn2, timestamp=date1)
hash3 = hash_file(fn2)

assert hash1 == hash3
assert hash1 == hash3
4 changes: 3 additions & 1 deletion tests/gdslibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def test_time_changes_gds_hash(tmpdir):
date1 = datetime.datetime(1988, 8, 28)
date2 = datetime.datetime(2020, 12, 25)
lib = gdspy.GdsLibrary(name='speedy')
lib.new_cell("empty")
lib.write_gds(fn1, timestamp=date1)
hash1 = hash_file(fn1)
lib.write_gds(fn2, timestamp=date2)
Expand All @@ -416,6 +417,7 @@ def test_frozen_gds_has_constant_hash(tmpdir):
fn2 = str(tmpdir.join('freeze2.gds'))
frozen_date = datetime.datetime(1988, 8, 28)
lib = gdspy.GdsLibrary(name='Elsa')
lib.new_cell("empty")
lib.write_gds(fn1, timestamp=frozen_date)
hash1 = hash_file(fn1)
lib.write_gds(fn2, timestamp=frozen_date)
Expand Down Expand Up @@ -458,4 +460,4 @@ def test_frozen_gds_with_cell_array_has_constant_hash(tmpdir):
lib.write_gds(fn2, timestamp=frozen_date)
hash2 = hash_file(fn2)

assert hash1 == hash2
assert hash1 == hash2

0 comments on commit 8d85eec

Please sign in to comment.