Skip to content

Commit 677f6bc

Browse files
committed
Fix tests.
1 parent 21d2d49 commit 677f6bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/sql/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,7 @@ def test_to_pandas(self):
26012601
@unittest.skipIf(not _have_old_pandas, "Old Pandas not installed")
26022602
def test_to_pandas_old(self):
26032603
with QuietTest(self.sc):
2604-
with self.assertRaisesRegexp(ImportError, 'Pandas \(.*\) must be installed'):
2604+
with self.assertRaisesRegexp(ImportError, 'Pandas >= .* must be installed'):
26052605
self._to_pandas()
26062606

26072607
@unittest.skipIf(not _have_pandas, "Pandas not installed")
@@ -2644,7 +2644,7 @@ def test_create_dataframe_from_old_pandas(self):
26442644
pdf = pd.DataFrame({"ts": [datetime(2017, 10, 31, 1, 1, 1)],
26452645
"d": [pd.Timestamp.now().date()]})
26462646
with QuietTest(self.sc):
2647-
with self.assertRaisesRegexp(ImportError, 'Pandas \(.*\) must be installed'):
2647+
with self.assertRaisesRegexp(ImportError, 'Pandas >= .* must be installed'):
26482648
self.spark.createDataFrame(pdf)
26492649

26502650

0 commit comments

Comments
 (0)