Skip to content

Commit 1206c56

Browse files
committed
py3 fix for HTML escaping
1 parent 0325f49 commit 1206c56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/test_format.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ def test_to_html_escaped(self):
253253
a = 'str<ing1'
254254
b = 'stri>ng2'
255255

256-
test_dict = {'co<l1':{a:type(a), b:type(b)},'co>l2':{a:type(a), b:type(b)}}
256+
test_dict = {'co<l1': {a: "<type 'str'>",
257+
b: "<type 'str'>"},
258+
'co>l2':{a: "<type 'str'>",
259+
b: "<type 'str'>"}}
257260
rs = pd.DataFrame(test_dict).to_html()
258261
xp = """<table border="1" class="dataframe">
259262
<thead>

0 commit comments

Comments
 (0)