Skip to content

Commit 0d239cb

Browse files
authored
Merge pull request #516 from datamol-io/revert-514-revert-513-fix/remove-polyfill
Revert "Revert "fix: Remove compromised link to polyfill.io""
2 parents 6b1ce7d + 34fe944 commit 0d239cb

File tree

3 files changed

+0
-200
lines changed

3 files changed

+0
-200
lines changed

graphium/utils/read_file.py

Lines changed: 0 additions & 173 deletions
This file was deleted.

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ extra_css:
6363
- _assets/css/custom-graphium.css
6464

6565
extra_javascript:
66-
- https://polyfill.io/v3/polyfill.min.js?features=es6
6766
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
6867
- _assets/js/google-analytics.js
6968

tests/test_utils.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -150,32 +150,6 @@ def test_nan_mad(self):
150150
np.testing.assert_almost_equal(torch_mad.numpy(), numpy_mad, decimal=4, err_msg=err_msg)
151151

152152

153-
def test_file_opener(tmp_path):
154-
# Create a temporary file
155-
txt_file = tmp_path / "test.txt"
156-
txt_file.write_text("Hello, World!")
157-
158-
# Test opening file in read mode
159-
with file_opener(txt_file, "r") as f:
160-
assert f.read() == "Hello, World!"
161-
162-
# Test opening file in write mode
163-
with file_opener(txt_file, "w") as f:
164-
f.write("New text")
165-
166-
with file_opener(txt_file, "r") as f:
167-
assert f.read() == "New text"
168-
169-
# Create a temporary gzip file
170-
gzip_file = tmp_path / "test.txt.gz"
171-
with gzip.open(gzip_file, "wt") as f:
172-
f.write("Hello, Gzip!")
173-
174-
# Test opening gzip file in read mode
175-
with file_opener(gzip_file, "r") as f:
176-
assert f.read() == "Hello, Gzip!"
177-
178-
179153
class test_SafeRun(ut.TestCase):
180154
def test_safe_run(self):
181155
# Error is caught

0 commit comments

Comments
 (0)