Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 12, 2024
1 parent b2a79d1 commit fa10da7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
# This software is licensed under the BSD 3-Clause License.
"""Regression tests for the I/O module."""

import filecmp
import tempfile
from pathlib import Path
from coxeter import io
from coxeter.shapes import Polyhedron, ConvexPolyhedron

import pytest

from coxeter import io
from coxeter.shapes import ConvexPolyhedron, Polyhedron


def compare_text_files(file_path_1, file_path_2):
"""Check whether two text files have identical contents, ignoring different
"""Check whether two text files have identical contents, ignoring different
newline characters."""
with open(file_path_1, "r") as file1, open(file_path_2, "r") as file2:
with open(file_path_1) as file1, open(file_path_2) as file2:
file1_contents, file2_contents = file1.read(), file2.read()
return file1_contents == file2_contents

Expand Down

0 comments on commit fa10da7

Please sign in to comment.