Skip to content

Commit

Permalink
Changed name of test function
Browse files Browse the repository at this point in the history
Changed '\xd7`
Changed name of test function
Removed redundant import
Fixes sympy#10413
  • Loading branch information
tokencolour committed Jan 19, 2016
1 parent ffe2c82 commit a8516fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sympy/printing/pretty/pretty.py
Expand Up @@ -1444,7 +1444,7 @@ def _print_ProductSet(self, p):
from sympy import Pow
return self._print(Pow(p.sets[0], len(p.sets), evaluate=False))
else:
prod_char = u('\xd7') if self._use_unicode else 'x'
prod_char = u("\N{MULTIPLICATION SIGN}") if self._use_unicode else 'x'
return self._print_seq(p.sets, None, None, ' %s ' % prod_char,
parenthesize=lambda set: set.is_Union or
set.is_Intersection or set.is_ProductSet)
Expand Down
3 changes: 1 addition & 2 deletions sympy/printing/pretty/tests/test_pretty.py
Expand Up @@ -3147,8 +3147,7 @@ def test_ProductSet_paranthesis():
a, b, c = Interval(2, 3), Interval(4, 7), Interval(1, 9)
assert upretty(Union(a*b, b*FiniteSet(1, 2))) == ucode_str

def test_ProductSet_prod_char():
from sympy import Interval
def test_ProductSet_prod_char_issue_10413():
ascii_str = '[2, 3] x [4, 7]'
ucode_str = u('[2, 3] × [4, 7]')

Expand Down

0 comments on commit a8516fd

Please sign in to comment.