Skip to content

Commit c4bfeca

Browse files
committed
Tweaks - add module to setup, revise doc.
1 parent d32ed95 commit c4bfeca

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
"""
2-
Fileformats
3-
4-
Importers / Exporters use some internal routines/ Symbols to accomplish their task. Submodules
5-
in this folder contain these routines. The context of the corresponding symbols are subcontexts of
6-
System`, like System`HTML` or System`XML to avoid spoil the System` namespace.
2+
File Formats
73
4+
Built-in Importers.
85
96
"""
107

8+
# The Built-in Functions are defined in a separate context under the
9+
# System`. For example System`HTML` and System`XML. This is done to not
10+
# pollute the System` namespace.
11+
12+
1113
from mathics.version import __version__ # noqa used in loading to check consistency.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def subdirs(root, file="*.*", depth=10):
126126
"mathics.builtin",
127127
"mathics.builtin.compile",
128128
"mathics.builtin.drawing",
129+
"mathics.builtin.fileformats",
129130
"mathics.builtin.files_io",
130131
"mathics.builtin.numbers",
131132
"mathics.builtin.numpy_utils",

test/test_assumptions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from .helper import check_evaluation
33
import pytest
44

5-
from mathics_scanner.errors import IncompleteSyntaxError
6-
75
list_test_assumptions_integrate = [
86
(
97
"Integrate[x^n, {x, 0, 1}]",

test/test_returncode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import subprocess
23

34
import os.path as osp
@@ -7,7 +8,6 @@ def get_testdir():
78
return osp.realpath(filename)
89

910
def test_returncode():
10-
subprocess.run(["dir", r"..\builtins\fileformats"])
1111
assert subprocess.run(["mathics", "-e", "Quit[5]"]).returncode == 5
1212
assert subprocess.run(["mathics", "-e", "1 + 2'"]).returncode == 0
1313
assert subprocess.run(["mathics", "-e", "Quit[0]"]).returncode == 0

0 commit comments

Comments
 (0)